Base class for statistical transformations. A stat receives the evaluated aesthetic values and returns (possibly new) values for the geom to draw.

Stat(name = character(0), provides = character(0))

Arguments

name

Human-readable stat name.

provides

Aesthetics this stat computes itself. A geom's required aesthetics are validated against the user's mapping plus these, so e.g. geom_point(stat = stat_bin()) is accepted even though the user maps only x - the stat supplies y.

Value

An S7 object of class Stat, the base class for statistical transformations.