A Data Flow Pipeline Approach to Building ggplot2 Layers
ggbuilder-package.Rd
ggbuilder provides a pipeline-based approach for building individual ggplot2 layers, analogous to dplyr-like data transformation pipelines.
Details
As an alternative to ggplot2 functions for controlling aesthetic evaluation
like stage()
, ggbuilder allows you to use function piping (i.e. |>
)
to chain data transformations, ggplot2::Stats, and ggplot2::Geoms together
in order to construct layers.
See
geom_()
andstat_()
for how to construct and chain geoms and stats using ggbuilderSee
plot_data()
for how to add data transformations into a layer definitionSee
remap()
for how to apply transformations to aesthetics after scales have been calculated (analogous toggplot2::after_scale()
).