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 text size of asterisk #14

Closed
acrylamidetic opened this issue May 14, 2017 · 1 comment
Closed

change text size of asterisk #14

acrylamidetic opened this issue May 14, 2017 · 1 comment

Comments

@acrylamidetic
Copy link

Really awesome ggplot package. I'd like to increase the size of the asterisks we get when map_signif_level = true.

If just set 'size = 14' it changes the bracket, not the asterisk size. Changing size of text in theme() doesn't effect the asterisk either.

Anyway to change the text annotations ggsignif adds to the plots? Ideally I'd like to change size and face.

Thanks!

@const-ae
Copy link
Owner

Hi,
happy to hear that you like the package.

Yes there is, the option is called textsize:

library(ggplot2)
library(ggsignif)
ggplot(mpg, aes(class, hwy)) +
  geom_boxplot() +
  geom_signif(comparisons = list(c("compact", "midsize"), c("minivan", "suv")),
              map_signif_level = TRUE, textsize=10, family="serif") +
  ylim(NA, 50)

image

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