Is there a command to Change the colour of the median line in boxplots that were produced using ggplot2/geom_boxplot?
Asked
Active
Viewed 8,761 times
1 Answers
3
if you want to change the colour of all lines, you can use this:
ggplot(mpg, aes(class, hwy))+ geom_boxplot(colour = "red")
if you just want to change the colour of the median, you can use the answer from here:
Change color median line ggplot geom_boxplot()
it adds a layer with geom_segment