Hi: Here's a ggplot2 example:
p <- ggplot(mtcars, aes(x = wt, y = mpg)) p + geom_rect(xmin = 2, xmax = 3, ymin = 0, ymax = Inf, fill = 'green', alpha = 0.2) + geom_point() + theme_bw() I don't know why the alpha transparency doesn't work in this example, but plotting the points after shading the rectangle at least makes the points visible. HTH, Dennis On Mon, Sep 13, 2010 at 6:58 AM, threshold <r.kozar...@gmail.com> wrote: > > Thanks for replying, indeed works. > I forgot to mention that I am looking for a 'transparent shading' s.t. the > plot symbols are still visible on the shaded area. > robert > -- > View this message in context: > http://r.789695.n4.nabble.com/shade-area-between-ablines-tp2537352p2537479.html > Sent from the R help mailing list archive at Nabble.com. > > ______________________________________________ > 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. > [[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.