Specifies a Layer within a Graphic. Each Layer in the
Grammar of Graphics framework contains a Stat, a Geom, and
a Position. The data_src
and ColumnMapping are used to create
the data for each layer; the stat_mapping
is a ColumnMapping that
is applied after the Stat is computed.
new()
Layer$new( data_src = NULL, mapping = ColumnMappingIdentity$new(data_src), stat_mapping = ColumnMappingIdentity$new(), geom = GeomBlank$new(), stat = StatIdentity$new(), position = PositionIdentity$new() )
data()
Layer$data(data_src)
data_stat()
Layer$data_stat(data_stat)
clone()
The objects of this class are cloneable with this method.
Layer$clone(deep = FALSE)
deep
Whether to make a deep clone.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.