add_boxplot | R Documentation |
Add boxplot
add_boxplot(
plot,
dodge_width = NULL,
alpha = 0.3,
saturation = 1,
show_whiskers = TRUE,
show_outliers = TRUE,
box_width = 0.6,
whiskers_width = 0.8,
outlier.size = 0.5,
coef = 1.5,
outlier.shape = 19,
outlier.alpha = 1,
linewidth = 0.25,
preserve = "total",
...
)
plot |
A |
dodge_width |
For adjusting the distance between grouped objects. Defaults
to |
alpha |
A |
saturation |
A |
show_whiskers |
Whether to show boxplot whiskers. Defaults to |
show_outliers |
Whether to show outliers. Defaults to |
box_width |
Width of the boxplot. Defaults to |
whiskers_width |
Width of the whiskers. Defaults to |
outlier.size |
Size of the outliers. Defaults to |
coef |
Length of the whiskers as multiple of IQR. Defaults to 1.5. |
outlier.shape |
Shape of the outliers. Defaults to |
outlier.alpha |
Opacity of the outliers. 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.
study |>
tidyplot(x = treatment, y = score, color = treatment) |>
add_boxplot()
# Changing arguments:
study |>
tidyplot(x = treatment, y = score, color = treatment) |>
add_boxplot(show_whiskers = FALSE)
study |>
tidyplot(x = treatment, y = score, color = treatment) |>
add_boxplot(show_outliers = FALSE)
study |>
tidyplot(x = treatment, y = score, color = treatment) |>
add_boxplot(box_width = 0.2)
study |>
tidyplot(x = treatment, y = score, color = treatment) |>
add_boxplot(whiskers_width = 0.2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.