cloneFacet {ggedit} | R Documentation |
Clone ggplot facet object
Description
Clone ggplot facet object and return either a gg object or the script to parse and evaluate
Usage
cloneFacet(obj, verbose = FALSE)
Arguments
obj |
gg facet wrap or facet_grid object |
verbose |
boolean, toggles to return object or script (TRUE), Default: FALSE |
Value
gg object or script
Examples
obj <- ggplot2::facet_grid(
rows = vars("a", "b"), cols = vars("c", "d"),
scales = 'free', as.table = FALSE, switch = 'x', shrink = FALSE
)
cloneFacet(obj)
cloneFacet(obj, verbose = TRUE)
[Package ggedit version 0.4.1 Index]