问题
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 ??
回答1:
Try medcol as in
boxplot(matrix(rnorm(100), ncol=2), medcol="red")
来源:https://stackoverflow.com/questions/10071371/coloring-only-the-median-in-the-boxplot