Session Ready
Exercise

Geom_point() and geom_errorbar()

One way of assessing model accuracy is by visualizing an error function, like root-mean-square error, over your dataset. Here, you will combine your knowledge of ggplot and polling accuracy to produce a plot that shows yearly predictions, actual results, and margins of error. Your goal is to put the actual results in the context of the predictive margin of error.

Instructions
100 XP
  • Make a ggplot with points representing the Dem.Vote and Dem.Poll margins and use geom_errorbar() to plot the confidence interval of the prediction.