Description Usage Arguments Author(s) References See Also Examples
A function for visualizing regression models quickly and easily.
Default plots contain a confidence band, prediction line, and partial
residuals. Factors, transformations, conditioning, interactions, and a
variety of other options are supported. The plot.visreg
function
accepts a visreg
or visregList
object as calculated by
visreg
and creates the plot.
1 2 3 4 5 6 | ## S3 method for class 'visreg'
plot(x, overlay=FALSE, print.cond=FALSE,
whitespace=0.2, partial=identical(x$meta$trans, I), band=TRUE,
rug=ifelse(partial, 0, 2), strip.names=is.numeric(x$fit[,x$meta$by]),
legend=TRUE, top=c('line', 'points'), gg=FALSE, line.par=NULL,
fill.par=NULL, points.par=NULL, ...)
|
x |
A |
overlay |
When |
print.cond |
If |
whitespace |
When |
partial |
If |
band |
If |
rug |
By default, partial residuals are plotted. Alternatively, a
|
strip.names |
When |
legend |
For overlay plots, ( |
top |
By default, the model fits |
gg |
By default ( |
line.par |
List of parameters (see |
fill.par |
List of parameters (see |
points.par |
List of parameters (see |
... |
Graphical parameters can be passed to the function to customize the
plots. If |
Patrick Breheny and Woodrow Burchett
Breheny, P. and Burchett, W. (2017), Visualizing regression models using visreg. https://journal.r-project.org/archive/2017/RJ-2017-046/index.html
http://pbreheny.github.io/visreg/options.html
visreg
visreg2d
visreg-faq
1 2 3 4 5 6 7 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.