[R] Gridbase basic question
sdavis2 at mail.nih.gov
Thu Sep 23 17:04:44 CEST 2004
I have a simple plot(x,y) and I would like to then insert rectangles of
some length (in native coordinates) and height fixed to 0.5 in native
coordinates. I can't quite get the code right to do this. Can anyone
give me a quick example of how to do this? I looked the gridBase index
and the tutorial (from R-news?) but just haven't gotten it down yet.
> par(new=T);vps <- baseViewports()
This draws a very large rectangle going from 2 to 7 (y) and to 8 (x).
More information about the R-help