GeomResid: Draw a residual as a segment from a prediction to an...

GeomResidR Documentation

Draw a residual as a segment from a prediction to an observation

Description

The segment is drawn from what the model predicts to what was observed, so x/y is the observation and xend/yend the prediction until the moment of drawing. Which of the two ends arrives says which axis the residual is measured on. geom_resid() pairs it with StatResid and computes those endpoints from a fitted model.

Usage

GeomResid

Format

A ggplot2::Geom object.

See Also

gf_resid(), the ggformula function for the same layer.


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