1

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!

sal_x_sal
  • 75
  • 1
  • 2
  • 7
  • Boxplot has a width parameter. Are you plotting to your workspace or to a file? It won't work in RStudio, because the plot will adapt to the size of the plotting window. – csgroen Sep 20 '17 at 17:43
  • I am using RStudio. Actually I used the wrong word, I meant the thickness of the border, not the width. – sal_x_sal Sep 20 '17 at 17:50

1 Answers1

1

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

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

Boxplot

G5W
  • 36,531
  • 10
  • 47
  • 80
  • Hi G5W, I came across that parameter, but that will change the thickness of the individual boxes making up the boxplot, I want to change the thickness of the outer enclosing box. – sal_x_sal Sep 20 '17 at 17:51
  • Sorry that I misunderstood the first time. I have edited the response. – G5W Sep 20 '17 at 17:55
  • Great! That is what I was trying to do. Thanks! – sal_x_sal Sep 20 '17 at 17:58