Re: [R] Problem with grid.rect

2012-09-27 Thread Bert Gunter
(Sorry, forgot to cc to the list) -- Bert On Thu, Sep 27, 2012 at 10:41 AM, Bert Gunter wrote: > Perrick: > > You have an a extra ")" after yscale = > so the pushViewport statement is ignored and the rest does what you ask it to. > > -- Bert > > On Thu, Sep 27, 2012 at 9:39 AM, Pierrick Bruneau

[R] Problem with grid.rect

2012-09-27 Thread Pierrick Bruneau
I have a stupid problem that is currently driving me crazy... Let us suppose that I want to draw a big red square in the middle of my current device (say X11) I tried the following code : pushViewport(viewport(xscale=c(0,1), yscale=c(0,1)), just=c("center", "center")) vp1 <- viewport(x=unit(0.5,