# Standard error of the mean
time_course |>
tidyplot(x = day, y = score, color = treatment) |>
add_mean_line() |>
add_sem_ribbon()
# Range from minimum to maximum value
time_course |>
tidyplot(x = day, y = score, color = treatment) |>
add_mean_line() |>
add_range_ribbon()
# Standard deviation
time_course |>
tidyplot(x = day, y = score, color = treatment) |>
add_mean_line() |>
add_sd_ribbon()
# 95% confidence interval
time_course |>
tidyplot(x = day, y = score, color = treatment) |>
add_mean_line() |>
add_ci95_ribbon()
# Changing arguments: alpha
time_course |>
tidyplot(x = day, y = score, color = treatment) |>
add_mean_line() |>
add_sem_ribbon(alpha = 0.7)
Run the code above in your browser using DataLab