This function adds vertical lines representing residuals from a linear model to a ggformula plot.
The residuals are drawn from the observed data points to the predicted values from the model.
Usage
gf_resid(plot, model, linewidth = 0.2, ...)
Value
A ggplot object with residual lines added.
Arguments
plot
A ggformula plot object, typically created with gf_point().