Re: [R] how to fill between 2 stair plots

2007-02-26 Thread Petr Klasterecky
Williams Scott napsal(a): > 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

Re: [R] how to fill between 2 stair plots

2007-02-26 Thread Peter Dalgaard
Williams Scott wrote: > 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 simp

[R] how to fill between 2 stair plots

2007-02-25 Thread Williams Scott
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 th