const-ae / ggsignif

Easily add significance brackets to your ggplots
https://const-ae.github.io/ggsignif/
GNU General Public License v3.0
593 stars 43 forks source link

Tip length #41

Closed Rsigni closed 3 years ago

Rsigni commented 6 years ago

Hi, How to get rid of tip length in aes ? I want to have only significance (, , ). No need of lines.

Thanks!

davidmasp commented 4 years ago

If you only wanna show the significance values without the segments that indicate the comparission I think you can just set linetype to blank.

Example:

library(magrittr)
library(ggplot2)
iris %>% ggplot(aes(x = Species,y = Sepal.Length)) + 
  geom_boxplot() +
  ggsignif::geom_signif(comparisons = list(c("virginica","versicolor")),
                        map_signif_level = TRUE,
                        linetype = "blank") +
  theme_classic()

Created on 2020-01-09 by the reprex package (v0.3.0)