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

Change axis, error bar and comparison brackets linewidth #43

Closed
mtmatter opened this issue Oct 13, 2017 · 1 comment
Closed

Change axis, error bar and comparison brackets linewidth #43

mtmatter opened this issue Oct 13, 2017 · 1 comment

Comments

@mtmatter
Copy link

mtmatter commented Oct 13, 2017

Hey,
Is there any way to change the thickness of axis, error bar and comparison brackets?
Thanks

Edit: I just realized you can overwrite the axis with ggplot2 code (+theme(axis.line.x=...))
Haven't found a way to change the error bars or comparison brackets though

@kassambara
Copy link
Owner

You can do this:

library(ggpubr)
ggbarplot(
  ToothGrowth, x = "dose", y = "len",
  add = "mean_sd", add.params = list(size = 4)
  )+
  stat_compare_means(
    comparisons = list(c("1", "2")),
    bracket.size = 2
  )

rplot42

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

2 participants