Coord: Coordinate systems

Description Methods Super class Methods

Description

Coordinate systems pick which aesthetics are position aesthetics, finalize the Panel at the end of the build process, and transform coordinates. Regardless of their aesthetics, they should always return from their $transform() method a data frame with x and y columns. The default CoordIdentity does not change the Panel and performs no changes in its $transform() method.

Methods

Public methods


Method new()

Usage
Coord$new(aesthetics = c("x", "y"))
Details

Create a coordinate system representing one or more position aesthetics.


Method transform()

Usage
Coord$transform(data_mapped, scales)
Details

Transform a data frame containing columns representing one or more position $aesthetics. This method should always return a data frame with x and y columns and leave non-position columns unchanged.


Method finalize_panel()

Usage
Coord$finalize_panel(panel)
Details

Finalize the Panel object at the end of the build process. This is where scale expansion (if any) can occur.


Method clone()

The objects of this class are cloneable with this method.

Usage
Coord$clone(deep = FALSE)
Arguments
deep

Whether to make a deep clone.

Super class

ggr6::Coord -> CoordIdentity

Methods

Public methods

Inherited methods

Method transform()

Usage
CoordIdentity$transform(data_mapped, scales)

Method finalize_panel()

Usage
CoordIdentity$finalize_panel(panel)

Method clone()

The objects of this class are cloneable with this method.

Usage
CoordIdentity$clone(deep = FALSE)
Arguments
deep

Whether to make a deep clone.


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