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 usingboxplot
though, since, as can be seen here it is possible to change the median's color without affecting the edges of the box.
flatten = 0
works for me,packageVersion('ggplot2') # [1] ‘2.2.1’
– Marje