Re: [R] superpose.polygon, panel.polygon and their colors

2010-10-20 Thread ottorino
Il giorno mar, 19/10/2010 alle 11.12 -0700, Dieter Menne ha scritto: Thanks Dieter for your help, but unfortunately your suggestion results only in changing the color of the *lines* and not the color of the *area* of the polygon. I also tried to call col from within the panel.superpose

Re: [R] superpose.polygon, panel.polygon and their colors

2010-10-20 Thread Dieter Menne
Ottorino-Luca Pantani wrote: Thanks Dieter for your help, but unfortunately your suggestion results only in changing the color of the *lines* and not the color of the *area* of the polygon. The following complete code works for me. Do you have the current version of lattice/R

Re: [R] superpose.polygon, panel.polygon and their colors

2010-10-20 Thread ottorino
Il giorno mer, 20/10/2010 alle 00.05 -0700, Dieter Menne ha scritto: The following complete code works for me. Do you have the current version of lattice/R installed? So the problem could be somewhere else. I suspected some of this kind. RShowDoc(NEWS, package = lattice) tell me that is

Re: [R] superpose.polygon, panel.polygon and their colors

2010-10-20 Thread Dennis Murphy
Hi Dieter: I think the OP wanted both lines and shading; from your code I could get the shading but not the lines. This is what it took for me to get the lines (note the type and col.line changes in xyplot() ): panel.bands - function(x, y, upper, lower, subscripts, ..., font,

Re: [R] superpose.polygon, panel.polygon and their colors

2010-10-20 Thread Dieter Menne
djmuseR wrote: Hi Dieter: I think the OP wanted both lines and shading; from your code I could get the shading but not the lines. This is what it took for me to get the lines (note the type and col.line changes in xyplot() ): xyplot(est ~ x | cond, group = grp, data = data, type =

Re: [R] superpose.polygon, panel.polygon and their colors

2010-10-20 Thread Dennis Murphy
Works for me! Thanks, Dieter! Regards, Dennis On Wed, Oct 20, 2010 at 2:07 AM, Dieter Menne dieter.me...@menne-biomed.dewrote: djmuseR wrote: Hi Dieter: I think the OP wanted both lines and shading; from your code I could get the shading but not the lines. This is what it took

Re: [R] superpose.polygon, panel.polygon and their colors

2010-10-20 Thread ottorino
Il giorno mer, 20/10/2010 alle 03.05 -0700, Dennis Murphy ha scritto: Works for me! Thanks, Dieter! Hi all. Thanks again to you both for the help. It was a problem due to a lack in updating ubuntu. After the upgrade to Lucid I entirely forgot to update /etc/apt/sources.list with the new lines.

Re: [R] superpose.polygon, panel.polygon and their colors

2010-10-20 Thread Deepayan Sarkar
On Wed, Oct 20, 2010 at 7:53 AM, ottorino ottorino-luca.pant...@unifi.it wrote: Il giorno mer, 20/10/2010 alle 03.05 -0700, Dennis Murphy ha scritto: Works for me!  Thanks, Dieter! Hi all. Thanks again to you both for the help. It was a problem due to a lack in updating ubuntu. After the

[R] superpose.polygon, panel.polygon and their colors

2010-10-19 Thread ottorino
Dear R-helpers, the problem I'm facing today is to convince lattice to paint some areas in gray. The areas I would like to have in gray, are confidence bands I've googled around in the mailing list archives and eventually find some clues. This link is my starting point

Re: [R] superpose.polygon, panel.polygon and their colors

2010-10-19 Thread Dieter Menne
Ottorino-Luca Pantani wrote: The areas I would like to have in gray, are confidence bands This link is my starting point http://tolstoy.newcastle.edu.au/R/e2/help/07/04/15595.html Thanks for the code example and for all the work you already put into it! I think this is an oversight

Re: [R] superpose.polygon, panel.polygon and their colors

2010-10-19 Thread Dennis Murphy
Hi: This is how you could do the same in ggplot2; geom_ribbon() does the shading. For your example, it seemed reasonable to put in reference lines, especially since the upper limits of one confidence band abutted the lower limits of the other in group a, so I averaged the upper and lower limits