l_getLocations | R Documentation |
For the target compound loon plot, determines location (only and excluding the grobs) arguments to pass to 'gridExtra::arrangeGrob()'
l_getLocations(target)
## S3 method for class 'l_facet'
l_getLocations(target)
## S3 method for class 'l_pairs'
l_getLocations(target)
## S3 method for class 'l_ts'
l_getLocations(target)
target |
the (compound) loon plot whose locations are needed lay it out. |
a list of an appropriate subset of the named location arguments
'c("ncol", "nrow", "layout_matrix", "heights", "widths")'. There are as many heights and
widths as there are plots returned by l_getPlots()
; these specify
the relative height and width of each plot in the display. layout_matrix
is an nrow
by ncol
matrix whose entries identify the location
of each plot in l_getPlots()
by their index.
if(interactive()) {
pp <- l_pairs(iris, showHistograms = TRUE)
ll <- l_getLocations(pp)
nplots <- length(l_getPlots(pp))
# the plots returned by l_getPlots(pp) are positioned
# in order by the layout_matrix
ll$layout_matrix
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.