Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

position argument with ggboxplot() function #586

Open
Marandola12 opened this issue Sep 13, 2023 · 0 comments
Open

position argument with ggboxplot() function #586

Marandola12 opened this issue Sep 13, 2023 · 0 comments

Comments

@Marandola12
Copy link

Is it possible to use the position dodge argument with the ggboxplot function? I want to reduce the gaps between the x axis groups (control, treat and oc). Is there any other way to do that? The idea is to plot two individual boxplots for the groups then a boxplot with all the data in the between them, but with a smaller gap between groups to reduce the white space.

Here is the code that I am running and the resulting plot:
plot <- ggboxplot(sp_bplot_df, x = "exp", y = "V_cmax", color = "species", palette =c("#00AFBB", "#E7B800", "#FC4E07"), merge = T, width = 0.1, add = "point", ggtheme = custom_theme) + geom_boxplot(width = 0.06, outlier.shape = 19, fill = "#9ddff7") + stat_summary(fun = mean, geom = "point", shape = 18)

combined_V_cmax

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant