Re: [R] Several densityplots in single figure

2012-02-23 Thread josh rosen
have learned the most regarding the fine points of lattice plots. And will you please learn to post in plain text? -- david                } ) On 22 February 2012 13:48, David Winsemius dwinsem...@comcast.net wrote: On Feb 22, 2012, at 5:28 AM, josh rosen wrote: Hi, I have

[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 -

[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 -

Re: [R] Several densityplots in single figure

2012-02-22 Thread josh rosen
=red) } ) On 22 February 2012 13:48, David Winsemius dwinsem...@comcast.net wrote: 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

[R] Adding a vertical line to plot with two overlapping density plots

2012-01-04 Thread josh rosen
Hi, A simple question I hope. I wish to add a single vertical line to a plot with several density plots. Here is a simplified example. thedata - data.frame(x1=rnorm(100,1,1),x2=rnorm(100,3,1)) #create data thedata.m-melt(thedata) densityplot(~value, thedata.m,

Re: [R] Adding a vertical line to plot with two overlapping density plots

2012-01-04 Thread josh rosen
thank you very much Petr. Yes, I meant densityplot form lattice. The code I gave plots the densities of both x1 and x2 in one panel. Could you show me how to integrate the function addline into the code so that a vertical line v=0 is added? On 4 January 2012 15:55, Petr PIKAL