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.
我想像这样创建箱线图:
该图由 lattice 包中的 bwplot 创建。而不是使用这个功能,我希望使用箱线图来绘制类似的东西。
我注意到在箱线图中我们只能改变箱体的颜色,如何通过箱线图函数改变箱体的边界颜色?谢谢!
查看?boxplot以发现有一个参数border=可以满足您的要求。例如:
?boxplot
border=
boxplot(count ~ spray, data = InsectSprays, col = "lightgray", border=c("blue", "green", "blue", "green", "blue", "green"))