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 -- View this message in context: http://r.789695.n4.nabble.com/Boxplot-has-only-one-whisker-tp2993262p2993262.html Sent from the R help mailing list archive at Nabble.com.
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
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? I use the same data for both boxplots. thx, tom -- View this message in context: http://r.789695.n4.nabble.com/Boxplot-has-only-one-whisker-tp2993262p2993335.html Sent from the R help mailing list archive at Nabble.com.