Re: [R] Boxplot has only one whisker

2010-10-14 Thread tom
You should provide raw data to boxplot(), not summary stats. If you want to input summary stats, there was a post some time ago on that: http://finzi.psych.upenn.edu/Rhelp10/2010-September/251674.html \quoate Overwriting $stats did the job for me. I wanted to show the effect of using

[R] Boxplot has only one whisker

2010-10-13 Thread tom
Hello! I am using box plot and one of my boxes has only one whisker. How can I change this? Code: bp-c(2.7, 3.1, 3.5, 8.95) Methode1 - quantile(bp,type = 7) Methode2 - quantile(bp,type = 2) d-data.frame(Methode1,Methode2) boxplot(d,ylab = Beispiel 1,range = 1.5)

Re: [R] Boxplot has only one whisker

2010-10-13 Thread Ivan Calandra
Try with more data points?! You have only five points, the last one being considered as outlier. Note that boxplot() requires a numeric vector for specifying data from which the boxplots are to be produced! HTH Ivan Le 10/13/2010 09:50, tom a écrit : Hello! I am using box plot and one of

Re: [R] Boxplot has only one whisker

2010-10-13 Thread tom
Ivan Calandra wrote: Try with more data points?! You have only five points, the last one being considered as outlier. Note that boxplot() requires a numeric vector for specifying data from which the boxplots are to be produced! But why is only one of the boxplots missing his whisker?

Re: [R] Boxplot has only one whisker

2010-10-13 Thread Ivan Calandra
Well, you don't use the same data for both. Type 2 and 7 give different values for the 25 and 75%, which correspond more or less to the box hinges. If you take a look at how the whiskers are defined (look at ?boxplot.stats): |coef| this determines how far the plot ‘whiskers’ extend out from

Re: [R] Boxplot has only one whisker

2010-10-13 Thread David Winsemius
On Oct 13, 2010, at 5:06 AM, Ivan Calandra wrote: Well, you don't use the same data for both. Type 2 and 7 give different values for the 25 and 75%, which correspond more or less to the box hinges. If you take a look at how the whiskers are defined (look at ? boxplot.stats): |coef| this