[R] Lattice densityplot with semitransparent filled regions

2012-04-11 Thread Walmes Zeviani
Hello, I'm doing some graphics for a paper and a need customize such with filled region above the density curve. My attempts I get something very near what I need, but I don't solve the problem of use semitransparent filled. Below a minimal reproducible code. Someone has any idea?

Re: [R] Lattice densityplot with semitransparent filled regions

2012-04-11 Thread ilai
densityplot(~y|B, groups=A, data=dt, plot.points=rug, col=trellis.par.get(superpose.polygon)$col, alpha=.5, panel=panel.superpose, panel.groups=my.panel.densityplot) Worked for me (i.e. semi-transparent superpose.polygon colors). Is that not what

Re: [R] Lattice densityplot with semitransparent filled regions

2012-04-11 Thread Walmes Zeviani
Thank you Ilai. Problem solved. There is a small detail, alpha affects the rug and the curve line opacity too. Is possible to specify it just to polygon? Bests. == Walmes Marques Zeviani LEG (Laboratório de Estatística e