Layer: A Graphics Layer

Description Methods

Description

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.

Methods

Public methods


Method new()

Usage
Layer$new(
  data_src = NULL,
  mapping = ColumnMappingIdentity$new(data_src),
  stat_mapping = ColumnMappingIdentity$new(),
  geom = GeomBlank$new(),
  stat = StatIdentity$new(),
  position = PositionIdentity$new()
)

Method data()

Usage
Layer$data(data_src)

Method data_stat()

Usage
Layer$data_stat(data_stat)

Method clone()

The objects of this class are cloneable with this method.

Usage
Layer$clone(deep = FALSE)
Arguments
deep

Whether to make a deep clone.


paleolimbot/ggr6 documentation built on Feb. 5, 2020, 2:17 p.m.