The hardware and bandwidth for this mirror is donated by dogado GmbH, the Webhosting and Full Service-Cloud Provider. Check out our Wordpress Tutorial.
If you wish to report a bug, or if you are interested in having us mirror your free-software or open-source project, please feel free to contact us at mirror[@]dogado.de.
visreg
provides a number of plotting functions for
visualizing fitted regression models: regression functions, confidence
bands, partial residuals, interactions, and more. visreg
is
compatible with virtually all formula-based models in R that provide a
predict
method: lm
, glm
,
gam
, rlm
, nlme
,
lmer
, coxph
, svm
,
randomForest
and many more.
The basic usage is that you fit a model, for example:
<- lm(Ozone ~ Solar.R + Wind + Temp, data=airquality) fit
and then you pass it to visreg
:
visreg(fit, "Wind")
A more complex example, using the mgcv
package:
$Heat <- cut(airquality$Temp, 3, labels=c("Cool", "Mild", "Hot"))
airquality<- gam(Ozone ~ s(Wind, by=Heat, sp=0.1), data=airquality)
fit visreg(fit, "Wind", "Heat", gg=TRUE, ylab="Ozone")
For details on visreg
syntax and how to use it, see:
The website focuses more on syntax, options, and user interface, while the paper goes into more depth regarding the statistical details.
If you have a question or feature request, please submit an issue.
To install the latest release version from CRAN:
install.packages("visreg")
To install the latest development version from GitHub:
::install_github("pbreheny/visreg") remotes
These binaries (installable software) and packages are in development.
They may not be fully stable and should be used with caution. We make no claims about them.
Health stats visible at Monitor.