Description Usage Arguments Value Author(s) See Also Examples
This function takes multiple visreg objects, from separate calls to
visreg()
, and joins them together in a single object. The single object
will be of type visregList
unless collapse=TRUE
is specified, in
which case the list will be collapsed back down into a single visreg
object.
1 | visregList(..., labels, collapse=FALSE)
|
... |
|
labels |
A character vector with length corresponding to the number of |
collapse |
If |
A visreg
or visregList
object, depending on the value of
collapse
.
Patrick Breheny
1 2 3 4 5 6 7 8 9 10 | fit <- lm(Ozone ~ Solar.R + Wind + Temp, data=airquality)
v1 <- visreg(fit, "Wind", plot=FALSE, alpha=0.2)
v2 <- visreg(fit, "Wind", plot=FALSE, alpha=0.01)
vv1 <- visregList(v1, v2, collapse=FALSE)
vv2 <- visregList(v1, v2, collapse=TRUE,
labels=c("Confidence: 0.80", "Confidence: 0.99"))
op <- par(mfrow=c(1,2))
plot(vv1)
par(op)
plot(vv2)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.