get_panel() extracts just the main panel from a ggplot or a specified panel
in a facetted plot.
get_panel_component() extracts components from the
panel, such as geoms.
get_panel(plot, panel = NULL, return_all = FALSE) get_panel_component(panel, pattern)
A ggplot or gtable from which to retrieve the panel
An integer indicating which panel to pull. ggplot orders panels column-wise, so this is in order from the top left down.
If there is more than one panel, should all be returned
as a list? Default is
the name of the component
A gtable object holding the panel(s) or a grob of the component