50% off | Unlimited Data & AI Learning
Get 50% off unlimited learning

ggedit (version 0.4.1)

cloneScales: Clone ggplot2 scales from compiled ggplot objects

Description

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

Usage

cloneScales(p, verbose = FALSE)

Value

ggplot scale or script (depends on verbose)

Arguments

p

ggplot object

verbose

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

Examples

Run this code
 # p <- pList$pointSmooth+scale_colour_continuous(low='red')
 # p
 # pList$pointSmooth+cloneScales(p)

Run the code above in your browser using DataLab