Re: [R] Coloring spaces between lines in xyplot

2008-09-23 Thread Seth W Bigelow
R-listers: I am summarizing input I got on a recent query about creating stacked, colored line plots in xyplot. The only input I got regarding xyplot was to use the polygon() command, but this seemed to require some awkward data manipulation. In contrast, I got several snippets of functional code

Re: [R] Coloring spaces between lines in xyplot

2008-09-20 Thread Frank E Harrell Jr
Jim Lemon wrote: Seth W Bigelow wrote: Ok, thanks to Carl Witthoft I now know that to color spaces between and below a pair of lines in xyplot, I will need to redefine the lines as polygons, and use the lpolygon panel function, as in the following library(lattice) p <- c(1,10,10,1) # ve

Re: [R] Coloring spaces between lines in xyplot

2008-09-20 Thread Jim Lemon
Seth W Bigelow wrote: Ok, thanks to Carl Witthoft I now know that to color spaces between and below a pair of lines in xyplot, I will need to redefine the lines as polygons, and use the lpolygon panel function, as in the following library(lattice) p <- c(1,10,10,1) # vector of x values q

Re: [R] Coloring spaces between lines in xyplot

2008-09-19 Thread Seth W Bigelow
Ok, thanks to Carl Witthoft I now know that to color spaces between and below a pair of lines in xyplot, I will need to redefine the lines as polygons, and use the lpolygon panel function, as in the following library(lattice) p <- c(1,10,10,1) # vector of x values q <- c(4,29.2,16,2.5)

Re: [R] Coloring spaces between lines in xyplot

2008-09-19 Thread hadley wickham
On Thu, Sep 18, 2008 at 5:14 PM, Seth W Bigelow <[EMAIL PROTECTED]> wrote: > > Greetings: > I wish to create a stacked line graph in xyplot, adding color to the > spaces between the lines. For example, the code below creates a plot with > two lines extending across it, and I want to color the rhom

Re: [R] Coloring spaces between lines in xyplot

2008-09-18 Thread Carl Witthoft
quote: I wish to create a stacked line graph in xyplot, adding color to the spaces between the lines. For example, the code below creates a plot with two lines extending across it, and I want to color the rhomboid that is between the upper and lower line, and between the lower line and the bo

[R] Coloring spaces between lines in xyplot

2008-09-18 Thread Seth W Bigelow
Greetings: I wish to create a stacked line graph in xyplot, adding color to the spaces between the lines. For example, the code below creates a plot with two lines extending across it, and I want to color the rhomboid that is between the upper and lower line, and between the lower line and the bo