View source: R/gg_GetPlotLayout.R
gg_GetPlotLayout | R Documentation |
Function to get the layout dataframe from a ggplot2 or gtable object.
gg_GetPlotLayout(p, keepAll = TRUE, verbose = 0)
p |
|
keepAll |
|
verbose |
|
This function adds information to a layout regarding how grobs are assigned to rows and columns in a ggplot2 (gtable) layout. It adds coordinates to allow plotting grobs as rectangles by row/column coordinates.
returns a dataframe with columns reflecting the row/column locations and extents of the input ggplot2 or gtable object.
William Stockhausen (william.stockhausen@noaa.gov)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.