Plot Function for RRPP
# S3 method for predict.lm.rrpp
plot(x, PC = FALSE, ellipse = FALSE, abscissa = NULL, label = TRUE, ...)
plot object (from predict.lm.rrpp
)
A logical argument for whether the data space should be rotated to its principal components
A logical argument to change error bars to ellipses in multivariate plots. It has no function for univariate plots or is abscissa is not NULL.
An optional vector (numeric of factor) equal in length
to predictions to use for
plotting as the abscissa (x-axis), in which case predictions are the
ordinate (y-axis). This might be
helpful if predictions are made for a continuous independent variable.
The abscissa would be the
same variable used to make predictions (and can be the data.frame used
for
newdata in predict.lm.rrpp
).
A logical argument for whether points should be labeled (in multivariate plots).
other arguments passed to plot, arrows, points, or text (helpful
to employ
different colors or symbols for different groups). See
plot.default
, arrows
, points
,
par
, and text
Michael Collyer
# See lm.rrpp help file for examples.
Run the code above in your browser using DataLab