ggplot - make the median invisible geom_boxplot

Viewed 2975

for some obscure reason, I must draw a boxplot with no apparent median. How can I achieve this (using ggplot is preferred, but if it is necessary I will switch to boxplot) please?

Related answers:

  • use fatten parameter: I tried setting the fatten parameter to 0, following this answer. A thin line remains.
  • use geom_segment : I tried to superpose a white segment onto the median using this method. But superposing a white segment onto the median line is unsatisfactory because the edges of the box are also erased. I think this approach would work using boxplot though, since, as can be seen here it is possible to change the median's color without affecting the edges of the box.
1 Answers
Related