sal_x_sal sal_x_sal - 28 days ago 7
R Question

How to change the width of the boxplot frame in R

I am trying to change the thickness of the border containing the boxplot figure. Is there a way to do this in R? Attached is the image with an arrow pointing to the border that I am talking about whose thickness I would like to change illustration image

Thanks!

G5W G5W
Answer Source

You can do that by overwriting the existing box with a heavier one.

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

Boxplot