?rect Something like this should work but I did not take the time to get the rectangles to fit properly.
aa <- rnorm(25) yl <- -1.5 yh <- 2.2 xleft <- c(4, 9, 15 ,20) xright <- xleft + 3 plot(aa, ylim= c(yl,yh), type="n") rect(xleft, yl, xright,yh, col="yellow") points(aa, col="red") --- del pes <[EMAIL PROTECTED]> wrote: > > Hello, > > I would like to draw vertical yellow bands in my > graph, but could not find how to do that in the > documentation. > > I set up a page to show what I would like to > achieve: http://rstudent.blogg.de/eintrag.php?id=1 > (the first picture was manually colored with the > Gimp). > > Any help would be welcome... > > All the best, > > Delfina > _________________________________________________________________ > [[replacing trailing spam]] > > ______________________________________________ > 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. > ______________________________________________ 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.