Re: [R] Conditional density plot in lattice

2010-01-28 Thread Deepayan Sarkar
On Fri, Jan 22, 2010 at 2:08 AM, Dieter Menne wrote: > > > Deepayan Sarkar wrote: >> >> With a restructuring of the data: >> >> df1 = data.frame(x=0:n, y1=((0:n)/n)^2, y2=1-((0:n)/n)^2, age="young") >> df2 = data.frame(x=0:n, y1=((0:n)/n)^3, y2=1-((0:n)/n)^3, age="old") >> df = rbind(df1, df2) >>

Re: [R] Conditional density plot in lattice

2010-01-22 Thread Dieter Menne
x, max(x)), c(0, y, 0), fill = fill) >}) > > Thanks, Deepayan. I noted, that the color of the bands is determined by "superpose.symbol". Is that by design or typo? Dieter -- View this message in context: http://n4.nabble.com/Re-R-Con

Re: [R] Conditional density plot in lattice

2010-01-21 Thread Jim Lemon
On 01/22/2010 04:05 AM, Dieter Menne wrote: Dear group, I want to create a plot similar to cdplot or cd_plot I vcd : http://addictedtor.free.fr/graphiques/graphcode.php?graph=120 with lattice and support for multiple panels. Densities should not be computed, these are stored in a data frame as

Re: [R] Conditional density plot in lattice

2010-01-21 Thread Deepayan Sarkar
On Thu, Jan 21, 2010 at 9:05 AM, Dieter Menne wrote: > Dear group, > > I want to create a plot similar to cdplot or cd_plot I vcd : > > http://addictedtor.free.fr/graphiques/graphcode.php?graph=120 > > with lattice and support for multiple panels. Densities should not be > computed, these are stor

[R] Conditional density plot in lattice

2010-01-21 Thread Dieter Menne
Dear group, I want to create a plot similar to cdplot or cd_plot I vcd : http://addictedtor.free.fr/graphiques/graphcode.php?graph=120 with lattice and support for multiple panels. Densities should not be computed, these are stored in a data frame as in the example. My current workaround with b