MulaiMulai sekarang secara gratis

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.

Latihan ini adalah bagian dari kursus

Analyzing Survey Data in R

Lihat Kursus

Latihan interaktif praktis

Cobalah latihan ini dengan menyelesaikan kode contoh berikut.

# Add lower and upper columns to out
out_col <- mutate(out, 
                  lower = ___, 
                  upper = ___)
Edit dan Jalankan Kode