Re: [R] overlay boxplot

2007-07-10 Thread hadley wickham
You will get more useful answers if you specify exactly how you want to overlay the boxplots (overlay them on what?). You can certainly do this with the ggplot2 package, or lattice or base graphics. Hadley On 7/10/07, Hao Liu [EMAIL PROTECTED] wrote: hi, All: I need to overlay two boxplot, I

Re: [R] overlay boxplot

2007-07-10 Thread Hao Liu
Thanks... I just realized using add=TRUE will work... Best Hao hadley wickham wrote: You will get more useful answers if you specify exactly how you want to overlay the boxplots (overlay them on what?). You can certainly do this with the ggplot2 package, or lattice or base graphics. Hadley

[R] overlay boxplot

2007-07-10 Thread Hao Liu
hi, All: I need to overlay two boxplot, I played around with points() but found it does not seem to work with boxplot, it works fine with other. Is there a way to overlay two boxplot (using different color) in R? There was a thread talking about using ggplot package, however, I don't think

[R] Overlay Boxplot with scatter plot

2006-08-01 Thread Lanre Okusanya
I am trying to make a box plot and overlay it with a scatter plot from another data.frame. I was able to successfully create the boxplot, but when i tried using points(x~y...) the dots did not show up. example code aa-(300,300,300,300,600,600,600,600,900,900,900,900)

Re: [R] Overlay Boxplot with scatter plot

2006-08-01 Thread Petr Pikal
Hi your example code is not reproducible. On 1 Aug 2006 at 8:09, Lanre Okusanya wrote: Date sent: Tue, 1 Aug 2006 08:09:38 -0400 From: Lanre Okusanya [EMAIL PROTECTED] To: R-help@stat.math.ethz.ch Subject:[R] Overlay Boxplot

Re: [R] Overlay Boxplot with scatter plot

2006-08-01 Thread Lanre Okusanya
Okusanya wrote: Date sent: Tue, 1 Aug 2006 08:09:38 -0400 From: Lanre Okusanya [EMAIL PROTECTED] To: R-help@stat.math.ethz.ch Subject:[R] Overlay Boxplot with scatter plot I am trying to make a box plot and overlay

Re: [R] Overlay Boxplot with scatter plot

2006-08-01 Thread Joris De Wolf
boxplot does not use the actual values of aa as x-value, but considers aa as a factor having three levels. Try bxp - boxplot(bb~aa, data=nn) bxp to see what the boxplot actually is. For your lines you should also use three levels. aa2-c(1,1,1,1,2,2,2,2,3,3,3,3,3,3,3) points(cc~aa2) (after

Re: [R] Overlay Boxplot with scatter plot

2006-08-01 Thread hadley wickham
code is not reproducible. On 1 Aug 2006 at 8:09, Lanre Okusanya wrote: Date sent: Tue, 1 Aug 2006 08:09:38 -0400 From: Lanre Okusanya [EMAIL PROTECTED] To: R-help@stat.math.ethz.ch Subject:[R] Overlay Boxplot