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 ______________________________________________ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.