Coloring only the median in the boxplot

坚强是说给别人听的谎言 提交于 2019-12-06 05:08:03

问题


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

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!