R: Clone ggplot2 scales from compiled ggplot objects

cloneScales {ggedit} | R Documentation

## 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)

### 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

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

[Package ggedit version 0.3.0 Index]