predict_plot | R Documentation |
Makes a matrix of pairwise scatterplots with lowess-type trend lines.
predict_plot(...)
... |
extra arguments passed to |
formula |
a formula specifying the response and predictor variables |
data, x |
a data frame with at least two columns |
partial |
a model from which to compute partial residuals (used
by |
mcol, mlwd |
If plotting partial residuals of an |
layout |
a vector |
highlight |
a logical vector specifying which predictors to highlight. |
se |
If |
scol, slwd |
color and width of trend lines. |
span, degree, family |
parameters for the trend line (see |
rtype |
how a factor response should be handled when drawing a trend line. |
identify.pred |
A character vector of predictor names for which
to interactively |
mar |
margins within each panel |
xaxt, yaxt |
arguments to |
col |
plotting color for symbols |
asp |
Aspect ratio for each panel. If |
given, given.lab, nlevels, pretty, key, bg, color.palette, pch.palette |
used for conditioning plots. |
main, xlab, ylab |
axis labels. |
If the predictor is numeric, makes a scatterplot with loess line on top.
If the predictor is a factor, makes a linechart
.
Tom Minka
loess
, model.plot
data(Cars) predict_plot(Price ~ ., CarsT) fit <- lm(Price ~ ., CarsT) predict_plot(Price~ ., CarsT, partial=fit) # same thing using predict_plot.lm predict_plot(fit, partial = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.