tidyplot | R Documentation |
Create a new tidyplot
tidyplot(
data,
...,
width = NULL,
height = NULL,
unit = NULL,
dodge_width = NULL,
my_style = NULL
)
data |
A tidy |
... |
Mappings for the |
width |
Width of the plot area. The default ( |
height |
Height of the plot area. The default ( |
unit |
Unit of the plot area width and height. The default ( |
dodge_width |
For adjusting the distance between grouped objects.
The default ( |
my_style |
Styling function to apply to the plot. The default ( |
study |>
tidyplot(x = treatment, y = score, color = treatment) |>
add_data_points_beeswarm()
study |>
tidyplot(x = group, y = score, color = dose) |>
add_mean_bar()
# Change plot area size
study |>
tidyplot(x = treatment, y = score, color = treatment,
width = 25, height = 25) |>
add_data_points_beeswarm()
# Change dodge_width
study |>
tidyplot(x = group, y = score, color = dose, dodge_width = 0.3) |>
add_mean_bar()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.