lemon-ggproto: ggproto classes used in lemon!

lemon-ggprotoR Documentation

ggproto classes used in lemon!

Description

If you are creating a new geom, stat, position, or scale in another package, you'll need to extend from ggplot2::Geom, ggplot2::Stat, ggplot2::Position, or ggplot2::Scale.

Axis annotations

Drawing axis annotations requires overloading the normal ggplot_build and ggplot_gtable to add extra columns and rows for these annotations (see gtable_show_grill).

See file axis-annotation.r.

Coordinate systems

The CoordFlexCartisan and CoordFlexFlipped allows us to inject other render_axis_h and render_axis_v methods for drawing other axes.

See coord-flex.r.

Facets

The class FacetGridRepeatLabels is an extension of ggplot2::FacetGrid while FacetWrapRepeatLabels is an extension of ggplot2::FacetWrap, both draws the axes on each panel. See facet_rep_grid, facet_rep_wrap, facet-rap-lab.r and facet_wrap.r.

Geoms

The geom-objects here extends ggplot2::Geom allowing us to produce the geoms for geom_pointline, geom_pointpath, geom_pointrangeline, and geom_siderange.

See geom-pointline.r and geom-siderange.r.

See Also

ggproto, ggplot2-ggproto


lemon documentation built on May 29, 2024, 8:48 a.m.