multiplot(..., title = "Coefficient Plot",
xlab = "Value", ylab = "Coefficient", innerCI = 1,
outerCI = 2, lwdInner = 1, lwdOuter = 0,
color = "blue", cex = 0.8, textAngle = 0,
numberAngle = 90, zeroColor = "grey", zeroLWD = 1,
zeroType = 2, single = TRUE, scales = "fixed",
ncol = length(unique(modelCI$Model)),
sort = c("natural", "normal", "magnitude", "size", "alphabetical"),
decreasing = FALSE, names = NULL, numeric = FALSE,
fillColor = "grey", alpha = 1/2, horizontal = FALSE,
factors = NULL, only = NULL, shorten = TRUE,
intercept = TRUE, plot = TRUE, drop = FALSE)FALSE then
coefficients for factor levels will include their
variable name. If TRUE coefficients for factor
levels will be stripped of their variable names. If a
character vector of variablecoefplot but for
multiple plots at once.
For now, if names is provided the plots will
appear in alphabetical order of the names. This wil be
adjusted in future iterations.link{coefplot}data(diamonds)
model1 <- lm(price ~ carat + cut, data=diamonds)
model2 <- lm(price ~ carat + cut + color, data=diamonds)
model3 <- lm(price ~ carat + color, data=diamonds)
multiplot(model1, model2, model3)
multiplot(model1, model2, model3, single=FALSE)
multiplot(model1, model2, model3, factors="color")
multiplot(model1, model2, model3, factors="color", drop=TRUE)
multiplot(model1, model2, model3, plot=FALSE)Run the code above in your browser using DataLab