tidyplot | R Documentation |
Create a new tidyplot
tidyplot(data, ..., width = 50, height = 50, dodge_width = NULL)
data |
A tidy |
... |
Mappings for the |
width |
Width of the plot area. Defaults to |
height |
Height of the plot area. Defaults to |
dodge_width |
For adjusting the distance between grouped objects. Defaults
to |
A tidyplot
object.
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 = 35, height = 35) |>
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.