如何更改 R 中箱线图框架的宽度

How to change the width of the boxplot frame in R

我正在尝试更改包含箱线图图形的边框的粗细。有没有办法在 R 中做到这一点?附件是图像,箭头指向我正在谈论的边界,我想更改其厚度 illustration image

谢谢!

您可以通过用较重的盒子覆盖现有的盒子来做到这一点。

boxplot(iris$Sepal.Length ~ iris$Species)
box(lwd=3)