as_tidyplot {tidyplots} | R Documentation |
Convert ggplot to tidyplot
Description
Convert ggplot to tidyplot
Usage
as_tidyplot(gg, width = 50, height = 50, dodge_width = NULL)
Arguments
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 |
Value
A tidyplot
object.
Examples
gg <-
study %>%
ggplot2::ggplot(ggplot2::aes(x = treatment, y = score, color = treatment)) +
ggplot2::geom_point()
gg
gg %>% as_tidyplot()
[Package tidyplots version 0.2.0 Index]