StatReduce: Carry reduction endpoints alongside their observations

StatReduceR Documentation

Carry reduction endpoints alongside their observations

Description

A reduction uses the same endpoint representation as a residual, but its starting point is the grand mean rather than the observation. The separate stat class keeps that statistical meaning visible to ggplot2 users and to code inspecting the layer. GeomResid and GeomSquareResid can draw either stat.

Usage

StatReduce

Format

A ggplot2::Stat object.

See Also

stat_reduce(), geom_reduce(), and geom_square_reduce().


coursekata documentation built on Sept. 22, 2026, 1:08 a.m.