powered by
Convert ggplot to tidyplot
as_tidyplot(gg, width = 50, height = 50, dodge_width = NULL)
A tidyplot object.
tidyplot
A ggplot.
Width of the plot area. Defaults to 50.
50
Height of the plot area. Defaults to 50.
For adjusting the distance between grouped objects. Defaults to 0.8 for plots with at least one discrete axis and 0 for plots with two continuous axes.
0.8
0
gg <- study %>% ggplot2::ggplot(ggplot2::aes(x = treatment, y = score, color = treatment)) + ggplot2::geom_point() gg gg %>% as_tidyplot()
Run the code above in your browser using DataLab