Re: [R] Whiskers on the default boxplot {graphics}

2010-05-14 Thread Peter Ehlers
Just to put this topic to rest: The hinges match quantile(x, probs = c(1,3)/4, type = 2) except when n = 3 mod 4. I no longer have Tukey's EDA book, but I think that his idea was that hinges (aka quartiles) were defined as medians of the lower/upper halves of the (sorted, of course) data, where

Re: [R] Whiskers on the default boxplot {graphics}

2010-05-13 Thread Robert Baer
Hi Peter, You're absolutely correct! The description for 'range' in 'boxplot' help file is a little bit confusing by using the words interquartile range. I think it should be changed to the length of the box to be exact and consistent with those in the help file for boxplot.stats. The

Re: [R] Whiskers on the default boxplot {graphics}

2010-05-13 Thread David Winsemius
On May 13, 2010, at 10:25 AM, Robert Baer wrote: Hi Peter, You're absolutely correct! The description for 'range' in 'boxplot' help file is a little bit confusing by using the words interquartile range. I think it should be changed to the length of the box to be exact and consistent

Re: [R] Whiskers on the default boxplot {graphics}

2010-05-13 Thread Peter Ehlers
David, try this: fivenum(1:101) quantile(1:101, c(1,3)/4, type=5) -Peter On 2010-05-13 8:55, David Winsemius wrote: On May 13, 2010, at 10:25 AM, Robert Baer wrote: Hi Peter, You're absolutely correct! The description for 'range' in 'boxplot' help file is a little bit confusing by using

Re: [R] Whiskers on the default boxplot {graphics}

2010-05-13 Thread Robert Baer
And try this (which seems to leave us with type=2) and is listed in ?quantile as Discontinuous sample quantile types 1, 2, and 3 quantile(1:101, c(1,3)/4, type=2) 25% 75% 26 76 David, try this: fivenum(1:101) quantile(1:101, c(1,3)/4, type=5) -Peter On 2010-05-13 8:55, David Winsemius

Re: [R] Whiskers on the default boxplot {graphics}

2010-05-13 Thread David Winsemius
On May 13, 2010, at 12:18 PM, Robert Baer wrote: And try this (which seems to leave us with type=2) and is listed in ? quantile as Discontinuous sample quantile types 1, 2, and 3 quantile(1:101, c(1,3)/4, type=2) 25% 75% 26 76 I think Peter may be right,. If I do it with the rnorm

Re: [R] Whiskers on the default boxplot {graphics}

2010-05-13 Thread Joshua Wiley
On Thu, May 13, 2010 at 7:55 AM, David Winsemius dwinsem...@comcast.net wrote: Yes, and experimentation leads me to the conclusion that the only possible candidate for matching up the results of fivenum[c(2,4] with quantile(y, c(1,3)/4, type=i) is for type=5. I'm not able to prove that to

Re: [R] Whiskers on the default boxplot {graphics}

2010-05-13 Thread David Winsemius
I agree. I was convinced by Ehlers' example that type =2 was a better match to fivenum's result -- David.. On May 13, 2010, at 1:36 PM, Joshua Wiley wrote: On Thu, May 13, 2010 at 7:55 AM, David Winsemius dwinsem...@comcast.net wrote: Yes, and experimentation leads me to the conclusion

Re: [R] Whiskers on the default boxplot {graphics}

2010-05-13 Thread Shi, Tao
:09 AM Subject: Re: [R] Whiskers on the default boxplot {graphics} Hi Peter, You're absolutely correct! The description for 'range' in 'boxplot' help file is a little bit confusing by using the words interquartile range. I think it should be changed to the length of the box

Re: [R] Whiskers on the default boxplot {graphics}

2010-05-12 Thread Dennis Murphy
this. From: RJ Cunningham ro...@iinet.net.au ast.net Cc: R Project Help R-help@r-project.org Sent: Tue, May 11, 2010 9:57:48 PM Subject: Re: [R] Whiskers on the default boxplot {graphics} I think not. Isn't the secret here? Arguments: x: a numeric vector for which the boxplot

Re: [R] Whiskers on the default boxplot {graphics}

2010-05-12 Thread Jason Rupert
Project Help R-help@r-project.org Sent: Tue, May 11, 2010 9:57:48 PM Subject: Re: [R] Whiskers on the default boxplot {graphics} I think not. Isn't the secret here? Arguments: x: a numeric vector for which the boxplot will be constructed ('NA's and 'NaN's are allowed and omitted). coef

Re: [R] Whiskers on the default boxplot {graphics}

2010-05-12 Thread Robert Baer
- Original Message - Fantastic! It would be great if the description could be modified to include the mysterious bit about the upper and lower bound whisker positions: upper whisker = min(max(x), Q_3 + 1.5 * IQR) lower whisker = max(min(x), Q_1 - 1.5 * IQR) -- snip --

Re: [R] Whiskers on the default boxplot {graphics}

2010-05-12 Thread Dennis Murphy
Hi: Point well taken, Robert. This is a good example of the difference between how something is defined mathematically as opposed to how it is applied computationally. Thank you for the clarification. Regards, Dennis On Wed, May 12, 2010 at 9:51 AM, Robert Baer rb...@atsu.edu wrote: -

Re: [R] Whiskers on the default boxplot {graphics}

2010-05-12 Thread Peter Ehlers
On 2010-05-12 10:51, Robert Baer wrote: - Original Message - Fantastic! It would be great if the description could be modified to include the mysterious bit about the upper and lower bound whisker positions: upper whisker = min(max(x), Q_3 + 1.5 * IQR) lower whisker = max(min(x), Q_1

Re: [R] Whiskers on the default boxplot {graphics}

2010-05-12 Thread Shi, Tao
, May 12, 2010 3:40:12 AM Subject: Re: [R] Whiskers on the default boxplot {graphics} Fantastic! It would be great if the description could be modified to include the mysterious bit about the upper and lower bound whisker positions: upper whisker = min(max(x), Q_3 + 1.5 * IQR) lower whisker

Re: [R] Whiskers on the default boxplot {graphics}

2010-05-12 Thread Peter Ehlers
On 2010-05-12 13:27, Shi, Tao wrote: Jason, All these are clearly defined in the help file for 'boxplot' under 'range'. Don't understand how you missed that. ...Tao You've made me re-read the help page for boxplot. I notice that there's a difference in the description of 'range' on that

Re: [R] Whiskers on the default boxplot {graphics}

2010-05-12 Thread Shi, Tao
] Whiskers on the default boxplot {graphics} On 2010-05-12 13:27, Shi, Tao wrote: Jason, All these are clearly defined in the help file for 'boxplot' under 'range'. Don't understand how you missed that. ...Tao You've made me re-read the help page for boxplot. I notice that there's

[R] Whiskers on the default boxplot {graphics}

2010-05-11 Thread Jason Rupert
How are the lower/upper whiskers defined in the default version of boxplot {graphics}? I tried help(boxplot) and searching www.rseek.org, but I was unable to determine an absolute answer. I checked out the definition of boxplot according to Wikipedia (http://en.wikipedia.org/wiki/Box_plot),

Re: [R] Whiskers on the default boxplot {graphics}

2010-05-11 Thread David Winsemius
On May 11, 2010, at 9:45 PM, Jason Rupert wrote: How are the lower/upper whiskers defined in the default version of boxplot {graphics}? I tried help(boxplot) and searching www.rseek.org, but I was unable to determine an absolute answer. You need to follow the links from the help pages

Re: [R] Whiskers on the default boxplot {graphics}

2010-05-11 Thread Jason Rupert
...@yahoo.com Cc: R Project Help R-help@r-project.org Sent: Tue, May 11, 2010 9:00:15 PM Subject: Re: [R] Whiskers on the default boxplot {graphics} On May 11, 2010, at 9:45 PM, Jason Rupert wrote: How are the lower/upper whiskers defined in the default version of boxplot {graphics}? I tried help

Re: [R] Whiskers on the default boxplot {graphics}

2010-05-11 Thread Jason Rupert
, 2010 9:26:25 PM Subject: Re: [R] Whiskers on the default boxplot {graphics} Wowzers... From ?boxplot.stats: 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

Re: [R] Whiskers on the default boxplot {graphics}

2010-05-11 Thread RJ Cunningham
again. - Original Message From: Jason Rupert [1]jasonkrup...@yahoo.com To: David Winsemius [2]dwinsem...@comcast.net Cc: R Project Help [3]r-h...@r-project.org Sent: Tue, May 11, 2010 9:26:25 PM Subject: Re: [R] Whiskers on the default boxplot {graphics

Re: [R] Whiskers on the default boxplot {graphics}

2010-05-11 Thread Jason Rupert
this. From: RJ Cunningham ro...@iinet.net.au ast.net Cc: R Project Help R-help@r-project.org Sent: Tue, May 11, 2010 9:57:48 PM Subject: Re: [R] Whiskers on the default boxplot {graphics} I think not. Isn't the secret here? Arguments: x: a numeric vector

Re: [R] Whiskers on the default boxplot {graphics}

2010-05-11 Thread David Winsemius
again. - Original Message From: Jason Rupert jasonkrup...@yahoo.com To: David Winsemius dwinsem...@comcast.net Cc: R Project Help R-help@r-project.org Sent: Tue, May 11, 2010 9:26:25 PM Subject: Re: [R] Whiskers on the default boxplot {graphics} Wowzers... From ?boxplot.stats

Re: [R] Whiskers on the default boxplot {graphics}

2010-05-11 Thread David Winsemius
To: David Winsemius dwinsem...@comcast.net Cc: R Project Help R-help@r-project.org Sent: Tue, May 11, 2010 9:26:25 PM Subject: Re: [R] Whiskers on the default boxplot {graphics} Wowzers... From ?boxplot.stats: Details The two ‘hinges’ are versions of the first