[R] shadow between two lines in plot()
Jim Lemon
jim at bitwrit.com.au
Thu Aug 2 12:48:26 CEST 2007
Ding, Rebecca wrote:
> Dear R users,
>
> I used the following code to draw a scatter plot.
>
> plot(x,y,type="n")
> points(x,y,pch=1)
>
> And then I used the abline functions to draw two lines. I want to add
> the shadow between those two lines.
>
> abline(h=200)
> abline(h=300)
>
> Any suggestions?
>
Hi Rebecca,
Have a look at polygon.shadow in the plotrix package. You can display a
shadow-like figure based on any polygon.
Jim
More information about the R-help
mailing list