as_tidyplot {tidyplots} | R Documentation |
Convert ggplot to tidyplot
as_tidyplot(gg, width = 50, height = 50, dodge_width = 0.8)
gg |
A ggplot. |
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.
gg <-
study %>%
ggplot2::ggplot(ggplot2::aes(x = treatment, y = score, color = treatment)) +
ggplot2::geom_point()
gg
gg %>% as_tidyplot()