Re: [R] Shading underneath a line plot.

2008-10-24 Thread Greg Snow
Is this what you want? mydata <- c(268,251,254,250,244,246,247,243,241,243) plot(mydata, type="o") polygon( c( 1, 1:length(mydata), length(mydata) ), c(0,mydata,0), col='red') I could not see your original plot since we don't know what ppp is. -- Gregory (Greg) L. Snow Ph.D. Statistical Data Ce

Re: [R] Shading underneath a line plot.

2008-10-24 Thread jim holtman
Is this what you want: mydata <- c(268,251,254,250,244,246,247,243,241,243) plot(mydata, type="o") # choose a min y value minY <- 240 polygon(c(1, 1:10, 10), c(240, mydata, 240), col='red') On Fri, Oct 24, 2008 at 12:17 PM, Alastair Andrew <[EMAIL PROTECTED]> wrote: > > Hi, > > I'm sure this sho