const-ae/ggsignif

Error message

Closed this issue · 2 comments

I am trying to use the ggsignif package to notate the statistical difference in pollen crude protein content between two different study sites (Site A and Site E). I have both geom_signif and gggplot2 packages installed and the latest version of RStudio (1.0.143) and all packages are updated. However, I keep getting an error message,

Error: No stat called StatSignif.

Below is the code for the simple plot I am attempting to make. Any help is much appreciated.

ggplot(km2014long, aes(x=site_letter, y=protein_dry_percent)) + geom_boxplot() + geom_signif(comparisons = list(c("A","E")), map_signif_level = TRUE)

That error message is weird because it means that ggplot cannot find the main component of my package, which should not happen. I can only recommend to reinstall the package, to see if that fixes the error (it did for another user).

Thanks for the suggestion. I made a bonehead mistake - I had the newest version of Rstudio but not the newest version of R installed. Updating both to the latest versions remedied the issue. Thanks again and sorry for wasting anyone's time.