Skip to content

fortify_centiles

man/fortify_centiles.Rd

Usage

fortify_centiles(
fit,
outcome = NULL,
x = NULL,
by = NULL,
centiles = c(0.05, 0.25, 0.5, 0.75, 0.95),
n = 120
)

These helpers return tibbles. autoplot() consumes them; users can also rebuild a chart by hand.

Argument Description
fit A ref_fit.
outcome Outcome name.
x Numeric covariate for the x-axis.
by Optional grouping factor (column name). One chart is built
per level; other covariates stay at their reference value.
centiles Probability levels to evaluate.
n Grid length along x.

A list of class ref_centile_data with lines and ribbons tibbles.