Description Usage Arguments Value Examples
Creates a plot of the coefficients of a model.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
coefs |
A vector with each coefficient |
lwr.int |
A vector with the lower end of the CI |
upper.int |
A vector with the upper end of the CI |
offset |
Y-axis offset for the coefficients |
coefnames |
Name for each variable |
abline.pos |
Position for the vertical reference line |
sorted |
Should the coefficients be sorted from highest to lowest? |
reverse |
Should the order be reversed? |
pch |
Type of point |
xlim |
Limits of the X-axis |
ylim |
Limits of the Y-axis |
color |
Color for the points |
... |
Further arguments passed to axis() |
A plot of the coefficients with their CI
1 2 3 4 5 6 7 8 9 | lm1 <- lm(Petal.Length ~ Sepal.Width + Species, data=iris)
a<-report(lm1)
oldpar <- par()
par(mar=c(4, 10, 3, 2))
#Coefplot calling plot.reportmodel
plot(a)
par(mar=oldpar$mar) #Restore old margin values
#Manual coefplot
coefplot(coefs=c(1, 2, 3), lwr.int=c(0, 1, 2), upper.int=c(5, 6, 7), coefnames=c("A", "B", "C"))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.