Re: [R] grid and ps device (bg-color)

2005-05-03 Thread mkondrin
Hi! grid.rect(width=2, height=2, gp=gpar(fill=ps.options()$bg.color)) Yes, it works (more or less), but the best is to use grid.rect(width=unit(1,npc)+unit(0.5,inches),...) as postscript device leaves a 0.25-inch frame around the page. BTW wouldn't you fix a bug with the determination

Re: [R] grid and ps device (bg-color)

2005-05-03 Thread Paul Murrell
Hi mkondrin wrote: Hi! grid.rect(width=2, height=2, gp=gpar(fill=ps.options()$bg.color)) Yes, it works (more or less), but the best is to use grid.rect(width=unit(1,npc)+unit(0.5,inches),...) as postscript device leaves a 0.25-inch frame around the page. BTW wouldn't you fix a bug with

[R] grid and ps device (bg-color)

2005-04-29 Thread mkondrin
Hello! Is it a bug or something? When I try to draw a grid-graphics on ps output background color is always transparent (with standard plot(...) this is not the case - the background is filled with ps.options()$bg color). What's wrong? Drawing a background grid.rect does not help - there is

Re: [R] grid and ps device (bg-color)

2005-04-29 Thread Paul Murrell
Hi mkondrin wrote: Hello! Is it a bug or something? When I try to draw a grid-graphics on ps output background color is always transparent (with standard plot(...) this is not the case - the background is filled with ps.options()$bg color). What's wrong? Drawing a background grid.rect does