5

Is there a way to color only the median line of the boxplot and not the whole boxplot.

When I try this :

boxplot(matrix,col="red")

then the whole box gets red colored. I want to color only the median line of the boxplot.

Is there a way to do it in R ??

Sophia
  • 1,821
  • 2
  • 17
  • 19
user1021713
  • 2,133
  • 8
  • 27
  • 40

1 Answers1

14

Try medcol as in

boxplot(matrix(rnorm(100), ncol=2), medcol="red")

enter image description here

Henry
  • 6,704
  • 2
  • 23
  • 39