View source: R/gg_GetPlotSizeInfo.R
gg_GetPlotSizeInfo | R Documentation |
Function to get info on grob sizes of a ggplot2 object or derived gtable.
gg_GetPlotSizeInfo(p, unit = "in", keepAll = FALSE, verbose = 0)
p |
|
unit |
|
keepAll |
|
verbose |
|
This function identifies scales of components in a ggplot2 object. The row/column sizes (and sums) may involve null units reflecting expandable grobs.
invisibly returns a list with elements lyt - vector with plot width and height tbl_rows - table with row sizes sum_rows - table with summed height of rows tbl_cols - table with column sizes sum_cols - table with summed width of columns
William Stockhausen (william.stockhausen@noaa.gov)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.