Get startedGet started for free

Bar plots with error

In the video, we saw how to incorporate error bars into our bar plot to give the viewer a sense of the uncertainty in our estimates. We used error bars of +/- 1 standard error, but it's also common to use +/- 2 standard errors since that roughly represents a confidence interval for the quantity of interest.

This exercise is part of the course

Analyzing Survey Data in R

View Course

Hands-on interactive exercise

Have a go at this exercise by completing this sample code.

# Add lower and upper columns to out
out_col <- mutate(out, 
                  lower = ___, 
                  upper = ___)
Edit and Run Code