How to Increase the thickness of the box lines in an R boxplot?

后端 未结 2 934
小鲜肉
小鲜肉 2021-01-18 02:58

How can I increase the thickness of the lines that outline \"box\" part of a boxplot using either the base R plot or boxplot function? That is, how do I thicken the lines o

相关标签:
2条回答
  • 2021-01-18 03:30

    See the boxlwd parameter as discussed in ?bxp (linked to from ?boxplot). E.g.

    boxplot(rnorm(100,50,10), horizontal = TRUE, notch = TRUE, boxlwd = 4)
    
    0 讨论(0)
  • 2021-01-18 03:34

    Are you talking about the rectangle that surrounds the plot area? If so, then this can follow you plot call:

     box(lwd=5)
    
    0 讨论(0)
提交回复
热议问题