drawit() drew a single base-R slice of an lm() and required the caller
to name a value for every other predictor. That job is now done by
slice_2d(), which imputes unspecified predictors (mean for numeric, most
common level for factors) instead of demanding them. drawit() is kept as a
deprecated shim: it warns and forwards to slice_2d(), mapping xaxis to
x_axis and passing graphical parameters (col, lty, ...) straight
through. It will be removed in a future release.
Arguments
- model
A linear model fit with
stats::lm().- xaxis
The primary explanatory variable to vary along the x-axis.
- ...
Graphical parameters forwarded to
slice_2d()(e.g.col,lty).