[R] how to fill between 2 stair plots
Williams Scott
Scott.Williams at petermac.org
Mon Feb 26 08:55:11 CET 2007
Hi all,
I want to create a simple plot with 2 type='s' lines on it:
plot(a, b, type='s')
lines(x, y, type='s')
I wish to then fill the area between the curves with a colour to
accentuate the differences eg col=gray(0.95). I cant seem to come up
with a simple method for this. Any pointers in the right direction much
appreciated.
Cheers
Scott
_____________________________
Dr. Scott Williams
MBBS BScMed FRANZCR
Peter MacCallum Cancer Centre
Melbourne, Australia
scott.williams at petermac.org
More information about the R-help
mailing list