cloneScales: Clone ggplot2 scales from compiled ggplot objects

Description Usage Arguments Value Examples

View source: R/cloneScales.R

Description

Clone ggplot2 scales from compiled ggplot objects returns not the original call but the nested call

Usage

1
cloneScales(p, verbose = FALSE)

Arguments

p

ggplot object

verbose

boolean, if TRUE then returns script to eval(parse) if FALSE returns new compiled object Default: FALSE

Value

ggplot scale or script (depends on verbose)

Examples

1
2
3
 # p <- pList$pointSmooth+scale_colour_continuous(low='red')
 # p
 # pList$pointSmooth+cloneScales(p)

ggedit documentation built on July 8, 2020, 5:34 p.m.