[R] Coloring spaces between lines in xyplot
carl at witthoft.com
Fri Sep 19 05:14:08 CEST 2008
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 bottom of the frame.
I think polygon() will do what you want.
More information about the R-help