GeomDraw {ggalign}R Documentation

Base ggproto classes for ggplot2

Description

Base ggproto classes for ggplot2

Geoms

All ⁠geom_*()⁠ functions (like geom_point()) return a layer that contains a ⁠Geom*⁠ object (like GeomPoint). The ⁠Geom*⁠ object is responsible for rendering the data in the plot.

Each of the ⁠Geom*⁠ objects is a ggproto() object, descended from the top-level Geom, and each implements various methods and fields.

Compared to Stat and Position, Geom is a little different because the execution of the setup and compute functions is split up. setup_data runs before position adjustments, and draw_layer() is not run until render time, much later.

To create a new type of Geom object, you typically will want to override one or more of the following:

See also the new geoms section of the online ggplot2 book.

Coordinate systems

All ⁠coord_*()⁠ functions (like coord_trans()) return a ⁠Coord*⁠ object (like CoordTrans).

Each of the ⁠Coord*⁠ objects is a ggproto() object, descended from the top-level Coord. To create a new type of Coord object, you typically will want to implement one or more of the following:

See also the new coords section of the online ggplot2 book.

See Also

ggproto


[Package ggalign version 0.0.3 Index]