tidyplot {tidyplots} | R Documentation |
Create a new tidyplot
Description
Create a new tidyplot
Usage
tidyplot(data, ..., width = 50, height = 50, dodge_width = NULL)
Arguments
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 |
Value
A tidyplot
object.
Examples
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()
[Package tidyplots version 0.2.0 Index]