Re: [R] how to draw multiple vertical bands

2010-04-20 Thread Marsh Feldman
On 04/15/2010 12:36 AM, senne wrote: hi R gurus I saw some graphs with vertical band like this one: http://pragcap.com/wp-content/uploads/2010/04/GS.png how to draw the blue band in R, can't find any clue to do this,any ideas? See the source code for nber.xy and

Re: [R] how to draw multiple vertical bands

2010-04-20 Thread Petr PIKAL
Hi you can also use abline function x-rnorm(10) plot(1:10, x) abline(v=seq(2,10,2), lwd=50, col=lightblue) lines(1:10, x, type=b) Regards Petr r-help-boun...@r-project.org napsal dne 19.04.2010 20:59:15: On 04/15/2010 12:36 AM, senne wrote: hi R gurus I saw some graphs with

Re: [R] how to draw multiple vertical bands

2010-04-15 Thread Jim Lemon
On 04/15/2010 12:36 AM, senne wrote: hi R gurus I saw some graphs with vertical band like this one: http://pragcap.com/wp-content/uploads/2010/04/GS.png how to draw the blue band in R, can't find any clue to do this,any ideas? Hi senne, The rect function in base graphics can do the job.

[R] how to draw multiple vertical bands

2010-04-14 Thread senne
hi R gurus I saw some graphs with vertical band like this one: http://pragcap.com/wp-content/uploads/2010/04/GS.png how to draw the blue band in R, can't find any clue to do this,any ideas? thanks in advance [[alternative HTML version deleted]]

Re: [R] how to draw multiple vertical bands

2010-04-14 Thread jim holtman
?rect On Wed, Apr 14, 2010 at 10:36 AM, senne wase...@gmail.com wrote: hi R gurus I saw some graphs with vertical band like this one: http://pragcap.com/wp-content/uploads/2010/04/GS.png how to draw the blue band in R, can't find any clue to do this,any ideas? thanks in advance

Re: [R] how to draw multiple vertical bands

2010-04-14 Thread Felix Andrews
There is panel.xblocks() in the latticeExtra package: http://latticeextra.r-forge.r-project.org/#panel.xblocks and a corresponding base graphics function xblocks() in the development version of the zoo package (not in the current CRAN release). On 15 April 2010 00:36, senne wase...@gmail.com