Commit e5262e8b authored by Arndt Leininger's avatar Arndt Leininger

errorbar instead of geom_ribbon

parent 7c1f5901
......@@ -27,9 +27,7 @@ glm(vote ~ age + black + lib_con, d, family = binomial())
# intervals from the model and saving them to a data.frame.
# 4. Now plot this new data.frame. Use geom_point() for the coefficient estimates
# and geom_ribbon() for the confidence intervals.
# and geom_errorbar() for the confidence intervals.
# 5. The intercept is on entirely different scale as the other coefficients.
# Improve the plot through omitting the intercept.
......
......@@ -32,7 +32,7 @@ names(coefs) <- c('var', 'coef', 'lwr', 'upr')
# 4. Now plot this new data.frame. Use geom_point() for the coefficient estimates
# and geom_ribbon() for the confidence intervals.
# and geom_errorbar() for the confidence intervals.
library(ggplot2)
ggplot(coefs, aes(var, coef)) +
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment