Create a box without a mustache

I made field plots for the start values ​​of three different groups using the box-plot function in R, for example:

boxplot(onset ~ group, data = pulse.dat, range = 0, col = "lightblue") 

However, I want to see how the data looks without a range, so I want to create a box without a mustache. I will also not mind any graph as long as it displays the median, 25th and 75th quartiles for each of the three groups.

Does anyone know how I can do this in R?

+4
source share
1 answer

In the boxplot pars section ...

  d <- rnorm(1:100, 100, 10) boxplot(d, whisklty = 0, staplelty = 0) 

whisklty gets rid of lines or mustaches

staplelty gets rid of ends or brackets

+10
source

Source: https://habr.com/ru/post/1493532/


All Articles