Try this getting the limits of the plot area: > x=c(1,5);y=c(1,5) > plot(y~x, type='n') > abline(v=c(2,3), lty=2) > usr <- par('usr') > usr [1] 0.84 5.16 0.84 5.16 > rect(2, usr[3], 3, usr[4], col='green') >
On Mon, Sep 13, 2010 at 8:45 AM, threshold <r.kozar...@gmail.com> wrote: > > > Hi, want to shade the area between dotted lines: > > x=c(1,5);y=c(1,5) > plot(y~x, type='n') > abline(v=c(2,3), lty=2) > > sometnig simple needed. tried with polygon.... > > thx, robert > -- > View this message in context: > http://r.789695.n4.nabble.com/shade-area-between-ablines-tp2537352p2537352.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. > -- Jim Holtman Cincinnati, OH +1 513 646 9390 What is the problem that 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.