Pipable ggplot2 layers
layer.Rd
A ggplot2::layer built from a layer_spec and intended for
piping. Typically constructed using geom_()
or stat_()
, not this function.
Usage
new_layer(x)
# S3 method for ggbuilder_layer
new_layer(x)
# S3 method for ggbuilder_layer_spec
new_layer(x)
Arguments
- x
One of:
A ggbuilder layer_spec
A ggbuilder layer
Value
A ggbuilder layer, which is also a ggplot2::layer, and which can be
added to a ggplot()
object or piped into other ggbuilder functions.