View source: R/gg_ShowPlotGrobs.R
gg_ShowPlotGrobs | R Documentation |
Function to show component "grobs" of a ggplot2 object (and get info on grob sizes).
gg_ShowPlotGrobs(
p,
unit = "in",
xOffset = -3,
yOffset = -3,
showAll = FALSE,
showPlot = TRUE,
verbose = 0
)
p |
|
unit |
|
xOffset |
|
yOffset |
|
showAll |
|
showPlot |
|
verbose |
|
This function identifies scales of components in a ggplot2 object and creates an unfilled rectangle plot of the resulting components with axes reflecting the rows and columns in the gtable derived from the ggplot2 object.
See also gg_ShowPlotDims, which is similar but provides absolute scales.
invisibly returns a list with elements plot - plot of object components with axes reflecting inferred sizes lyt - vector with plot width and height tbl_rows - sum_rows - tbl_cols - sum_cols -
William Stockhausen (william.stockhausen@noaa.gov)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.