Re: [R] Quantiles in boxplot‏

2012-01-14 Thread peter dalgaard
On Jan 14, 2012, at 16:07 , René Brinkhuis wrote: > > Based > on your information I created a custom function for calculating the > first and third quartile according to the 'boxplot logic'. A more compact (though not as readable) version is afforded by stats:::fivenum. A convenient descripti

Re: [R] Quantiles in boxplot‏

2012-01-13 Thread Sarah Goslee
The explanation is in ?boxplot.stats (as the help for boxplot states). Details: The two ‘hinges’ are versions of the first and third quartile, i.e., close to ‘quantile(x, c(1,3)/4)’. The hinges equal the quartiles for odd n (where ‘n <- length(x)’) and differ for even n. Whe

[R] Quantiles in boxplot‏

2012-01-13 Thread René Brinkhuis
Hi, I have a simple question about quartiles in R, especially how they are calculated using the boxplot. Quartiles (.25 and .75) in boxplot are different from the summary function and also don't match with the 9 types in the quantile function. See attachment for details. Can you give me the de