Skip to contents

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:

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.

Examples


# See geom_() or stat_() for examples; this function
# should not usually be used directly.