Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
有没有办法只为箱线图的中线而不是整个箱线图着色。
当我尝试这个时:
boxplot(matrix,col="red")
然后整个盒子变成红色。我只想为箱线图的中线着色。
有没有办法在 R 中做到这一点?
尝试medcol如下
medcol
boxplot(matrix(rnorm(100), ncol=2), medcol="red")