Re: [R] Several densityplots in single figure

2012-02-23 Thread josh rosen
Thank you very much Ilai, I'll try and implement this right away. On 22 February 2012 18:21, ilai wrote: > On Wed, Feb 22, 2012 at 8:49 AM, David Winsemius > wrote: > >> >> After going back and constructing a proper dataset, you should be passing >> 'groups' into the panel function and picking

Re: [R] Several densityplots in single figure

2012-02-22 Thread ilai
On Wed, Feb 22, 2012 at 8:49 AM, David Winsemius wrote: > > After going back and constructing a proper dataset, you should be passing > 'groups' into the panel function and picking it up inside panel.abline. Close, but unfortunately things get more complicated when using groups in densityplot. A

Re: [R] Several densityplots in single figure

2012-02-22 Thread David Winsemius
On Feb 22, 2012, at 9:13 AM, josh rosen wrote: thank you very much David! Can I follow up with a slight complication of this? A 2 by 2 case, where the abline is different in each plot. A relevant input code would be thedataA1 <- data.frame(x1=rnorm(100,1,1),x2=rnorm(100,3,1)) #create data

Re: [R] Several densityplots in single figure

2012-02-22 Thread josh rosen
thank you very much David! Can I follow up with a slight complication of this? A 2 by 2 case, where the abline is different in each plot. A relevant input code would be thedataA1 <- data.frame(x1=rnorm(100,1,1),x2=rnorm(100,3,1)) #create data thedataB1 <- data.frame(x1=rnorm(100,2,1),x2=rnorm(100

Re: [R] Several densityplots in single figure

2012-02-22 Thread David Winsemius
On Feb 22, 2012, at 5:28 AM, josh rosen wrote: Hi, I have created two separate overlapping density plots- see example code below. What I wish now to do is combine them into one figure where they sit side by side. Any help would be great! many thanks in advance, josh. ##

[R] Several densityplots in single figure

2012-02-22 Thread josh rosen
Hi, I have created two separate overlapping density plots- see example code below. What I wish now to do is combine them into one figure where they sit side by side. Any help would be great! many thanks in advance, josh. # thedataA <- data.frame(x1=rnorm(100,1,1),x2=rnorm(100

[R] Several densityplots in single figure

2012-02-22 Thread josh rosen
Hi, I have created two separate overlapping density plots- see example code below. What I wish now to do is combine them into one figure where they sit side by side. Any help would be great! many thanks in advance, josh. # thedataA <- data.frame(x1=rnorm(100,1,1),x2=rnorm(100