Closed Ni-Ar closed 7 years ago
Hello,
I agree with @Ni-Ar , very nice package indeed! I found myself wondering the same and facing the same issues.
Thanks for the help, J
Hi, I am happy to heat that you like the package.
The option to change the text 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)
This no longer seems to be working.
@angoodkind Can you please provide a reproducible example?
Because the stated solution still works for me:
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)
#> Warning in wilcox.test.default(c(29, 29, 31, 30, 26, 26, 27, 26, 25, 28, :
#> cannot compute exact p-value with ties
Created on 2022-12-19 with reprex v2.0.2
Ah, it looks like the problem was in trying to load the theme before ggsignif, e.g. theme_bw().
Hi,
very nice package! One question: -is it possible to specifically change only the size (or colour) of the asterisks on top of the line, instead of changing only the line size? I tried the argument size = x, but that works only for the line and not for the asterisks.
Many thanks, Ni-Ar