cloneFacet | R Documentation |
Clone ggplot facet object and return either a gg object or the script to parse and evaluate
cloneFacet(obj, verbose = FALSE)
obj |
gg facet wrap or facet_grid object |
verbose |
boolean, toggles to return object or script (TRUE), Default: FALSE |
gg object or script
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.