cloneScales | R Documentation |
Clone ggplot2 scales from compiled ggplot objects returns not the original call but the nested call
cloneScales(p, verbose = FALSE)
p |
ggplot object |
verbose |
boolean, if TRUE then returns script to eval(parse) if FALSE returns new compiled object Default: FALSE |
ggplot scale or script (depends on verbose)
# p <- pList$pointSmooth+scale_colour_continuous(low='red')
# p
# pList$pointSmooth+cloneScales(p)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.