Top whisker in a boxplot is located at 1.5*IQR + Q3 (if max data value is larger than this). Now please consider the following data as written in R:
d<-c(seq(from = 1, to = 2, by = 0.2 ), seq(10, 100, by = 10), 200, 400)
IQR(d) # 75.65
quantile(d)[4] # 77.5 (upper hinge of boxplot)
So top whisker should be located at (77.5 + 1.5 * 75.65) = 190.75. Max value of d is 400. But 'boxplot.stats()' gives the location of upper whisker at 100. How?
> boxplot.stats(d)
$stats
[1] 1.0 1.8 35.0 80.0 100.0
$n
[1] 18
$conf
[1] 5.877572 64.122428
$out
[1] 200 400
I totally nonplussed. An explanation will be greatly appreciated.