Create Boxplot in Base R with Higher Width of Box Lines



To create boxplot in base R with higher width of the box lines, we can use the boxlwd argument inside boxplot function. For example, if we have a vector called x then we can create the boxplot with higher width of the box lines using the command −

boxplot(x,boxlwd=5)

Example

 Live Demo

x<-rnorm(10000)
boxplot(x,boxlwd=5)

Output

Example

 Live Demo

y<-rnorm(100,5,1)
boxplot(y,boxlwd=10)

Output

Updated on: 2021-03-17T07:38:19+05:30

217 Views

Kickstart Your Career

Get certified by completing the course

Get Started
Advertisements