diff --git a/R/plot.R b/R/plot.R index c1b2286f..35acc6ba 100644 --- a/R/plot.R +++ b/R/plot.R @@ -21,6 +21,74 @@ current.xts_chob <- function() invisible(get(".xts_chob",.plotxtsEnv)) + +# * A plot window contains multiple panels +# * There are 2 frames per panel +# * The first frame is a small 'header' frame for titles +# * The second frame is larger and where the data series is rendered, including +# axis labels +# +# The first panel is where the main series is rendered. Panels added later are +# plotted below the first panel and are smaller. +# +# +# add_frame(n) adds a new frame after frame 'n' +# +# What does 'clip' do? +# +# ____________________________________________________________________________ +# / \ +# | plot window | +# | | +# | ______________________________________________________________________ | +# | / \ | +# | | panel #1 | | +# | | __________________________________________________________________ | | +# | | / \ | | +# | | | header frame | | | +# | | \__________________________________________________________________/ | | +# | | __________________________________________________________________ | | +# | | / \ | | +# | | | series frame | | | +# | | | | | | +# | | | | | | +# | | | | | | +# | | | | | | +# | | | | | | +# | | | | | | +# | | | | | | +# | | | | | | +# | | | | | | +# | | | | | | +# | | | | | | +# | | | | | | +# | | | | | | +# | | | | | | +# | | | | | | +# | | \__________________________________________________________________/ | | +# | \______________________________________________________________________/ | +# | | +# | ______________________________________________________________________ | +# | / \ | +# | | panel #2 | | +# | | __________________________________________________________________ | | +# | | / \ | | +# | | | header frame | | | +# | | \__________________________________________________________________/ | | +# | | __________________________________________________________________ | | +# | | / \ | | +# | | | series frame | | | +# | | | | | | +# | | | | | | +# | | | | | | +# | | | | | | +# | | \__________________________________________________________________/ | | +# | \______________________________________________________________________/ | +# | | +# \____________________________________________________________________________/ +# + + # Currently not necessary, but potentially very useful: # http://www.fromthebottomoftheheap.net/2011/07/23/passing-non-graphical-parameters-to-graphical-functions-using/ chart.lines <- function(x,