Re: [R] Lattice and horizontally stacked density plots

2012-02-22 Thread Manish Nag
> With lattice alone you can easily get all curves on the same level: > densityplot(~ val | factor(id2), groups=factor(id1),data=a_df,pch='|') > I just tried the method above. Unfortunately it just makes plots with different colored lines that overlap one another. Can anyone point me to an example

Re: [R] Lattice and horizontally stacked density plots

2012-02-22 Thread ilai
The plot you referred to depends on packages flowViz and flowCore from R-bioconductor. With lattice alone you can easily get all curves on the same level: densityplot(~ val | factor(id2), groups=factor(id1),data=a_df,pch='|') But if that doesn't do it for you, you could write your own panel functi

[R] Lattice and horizontally stacked density plots

2012-02-22 Thread Manish Nag
Hello, I am try to make a density plot where plots are stacked like the one found here: http://dsarkar.fhcrc.org/lattice/book/images/Figure_14_03_stdBW.png I am facing problems, however. Using the code example below, I'd like to generate a separate panel for each val of id2. Within each panel, I