0

i am having difficulty removing the text on the right hand side of my graph (pairwise test:Dunn, bars shown: not significant). can anyone help?

plot1 <- ggstatsplot::ggbetweenstats(
  data = boxplot.Age,
  x = cluster,
  y = Age,
  color = group,
  title = "Age Box Plot",
  subtitle = "Grouped by cluster", type="nonparametric", comparisons_correction = "holm",results.subtitle =FALSE,   pairwise.display = 'none')

enter image description here

I tried to use the argument pairwise.display = 'none' but it did not work

1 Answers1

0

Just set pairwise.comparisons = FALSE and that should turn off pairwise comparisons and will also remove the secondary axis label:

plot1 <- ggstatsplot::ggbetweenstats(
  data = boxplot.Age,
  x = cluster,
  y = Age,
  color = group,
  title = "Age Box Plot",
  subtitle = "Grouped by cluster", 
  type = "nonparametric", 
  pairwise.comparisons = FALSE,
  results.subtitle = FALSE
)
Indrajeet Patil
  • 4,673
  • 2
  • 20
  • 51