add_sem_errorbar | R Documentation |
add_sem_errorbar()
adds the standard error of mean.
add_range_errorbar()
adds the range from smallest to largest value.
add_sd_errorbar()
adds the standard deviation.
add_ci95_errorbar()
adds the 95% confidence interval.
add_sem_errorbar(
plot,
dodge_width = NULL,
width = 0.4,
linewidth = 0.25,
preserve = "total",
...
)
add_range_errorbar(
plot,
dodge_width = NULL,
width = 0.4,
linewidth = 0.25,
preserve = "total",
...
)
add_sd_errorbar(
plot,
dodge_width = NULL,
width = 0.4,
linewidth = 0.25,
preserve = "total",
...
)
add_ci95_errorbar(
plot,
dodge_width = NULL,
width = 0.4,
linewidth = 0.25,
preserve = "total",
...
)
plot |
A |
dodge_width |
For adjusting the distance between grouped objects. Defaults
to |
width |
Width of the plot area. Defaults to |
linewidth |
Thickness of the line in points (pt). Typical values range between |
preserve |
Should dodging preserve the |
... |
Arguments passed on to the |
A tidyplot
object.
# Standard error of the mean
study |>
tidyplot(x = treatment, y = score, color = treatment) |>
add_data_points() |>
add_sem_errorbar()
# Range from minimum to maximum value
study |>
tidyplot(x = treatment, y = score, color = treatment) |>
add_data_points() |>
add_range_errorbar()
# Standard deviation
study |>
tidyplot(x = treatment, y = score, color = treatment) |>
add_data_points() |>
add_sd_errorbar()
# 95% confidence interval
study |>
tidyplot(x = treatment, y = score, color = treatment) |>
add_data_points() |>
add_ci95_errorbar()
# Changing arguments: error bar width
study |>
tidyplot(x = treatment, y = score, color = treatment) |>
add_data_points() |>
add_sem_errorbar(width = 0.8)
# Changing arguments: error bar line width
study |>
tidyplot(x = treatment, y = score, color = treatment) |>
add_data_points() |>
add_sem_errorbar(linewidth = 1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.