Closed ewissel closed 5 months ago
Hi there,
Thanks, this is a known bug (see #31 for example). The solution for now is to move fill = manufacturer
into geom_bar()
.
Specifically:
mpg %>%
mutate(displ = as.numeric(displ)) %>%
ggplot(aes(x = manufacturer, y = displ))+
geom_bar(aes(fill = manufacturer), position=position_dodge(), stat="identity") +
geom_jitter(height = 0, width = 0.2, size = 4) +
ylim(0,4) +
theme_prism(base_size = 16)+
scale_fill_manual(values = cbbPalette)+
theme(legend.position = "none") +
add_pvalue(p_vals, label = "p = {p.adj}", tip.length = 0, label.size = 4)
Hope this helps, Charlotte
since there is another open issue of the same bug i'll close this. thanks for your help!
Hey there,
I am currently running the following R code:
And receiving the following error:
When I run the same code without the
add_pvalues()
command, it creates the plot. I can also add pvalue lines with geom_signif(), but those stay small / don't get larger with thetheme_prism(base_size=16)
argument so I'd like to make the add_pvalues() arg work .Thanks for any advice! Not sure how to fix this one~