try this: > x=seq(0,5,len=100) > y=-(x-5)^2 > > plot(x,y) > polygon(c(x,x[length(x)]), c(y, y[1]), col='red')
On 9/13/07, gallon li <[EMAIL PROTECTED]> wrote: > say, I am plotting > > x=seq(0,5,len=100) > y=-(x-5)^2 > > plot(x,y) > > how can I put some color or verticle lines below the plotted curve? > > [[alternative HTML version deleted]] > > ______________________________________________ > R-help@r-project.org 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. > -- Jim Holtman Cincinnati, OH +1 513 646 9390 What is the problem you are trying to solve? ______________________________________________ R-help@r-project.org 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.