[R] Boxplot has only one whisker

Ivan Calandra ivan.calandra at uni-hamburg.de
Wed Oct 13 10:00:04 CEST 2010


  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 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)
> http://r.789695.n4.nabble.com/file/n2993262/boxplot_with_one_whisker.png
>
> Thanks!
> Tom

-- 
Ivan CALANDRA
PhD Student
University of Hamburg
Biozentrum Grindel und Zoologisches Museum
Abt. Säugetiere
Martin-Luther-King-Platz 3
D-20146 Hamburg, GERMANY
+49(0)40 42838 6231
ivan.calandra at uni-hamburg.de

**********
http://www.for771.uni-bonn.de
http://webapp5.rrz.uni-hamburg.de/mammals/eng/mitarbeiter.php



More information about the R-help mailing list