[R] Printing Lattice Graphs from Windows

Paul Murrell p.murrell at auckland.ac.nz
Sun Jun 6 22:50:52 CEST 2004


Hi

Sorry I haven't had a chance to look at this in the last week or so.  I 
think the problem may be in the core graphics engine (when there is grid 
output, but no "traditional" output).  Don't understand yet why this 
only seems to have kicked in with 1.9 (if anyone has ever seen it with 
1.8 or earlier please let me know).

Anyway I am now hunting this ...

Paul


Prof Brian Ripley wrote:
> On Sun, 6 Jun 2004, Duncan Murdoch wrote:
> 
> 
>>On Sun, 6 Jun 2004 15:00:52 -0500, Dirk Eddelbuettel <edd at debian.org>
>>wrote:
>>
>>
>>>But isn't it a bug in the windows version of R if the Rgui.exe cannot copy
>>>to the clipboard where Rterm.exe can?
>>
>>Yes, definitely.  Can someone distill this down to code that uses only
>>the base packages (e.g. just grid)?  Lattice is a recommended package,
>>so I'd refer you to its maintainer, but it's probably something in a
>>base package that's going wrong.
>>
>>Once you've done that, please submit it as a bug report with
>>reproducible code.  I've never looked at the Windows metafile device
>>driver, so it's unlikely I'll fix this by 1.9.1, but it is something
>>that should be fixed.
> 
> 
> It is not just lattice (try the second example in ?Grid) and it is not 
> just metafile (try saving to PDF) and it is not wholly reproducible.  But 
> most of the time (but not quite all the time)
> 
> library(grid)
> grid.show.viewport(viewport(x=0.6, y=0.6,
>                             w=unit(1, "inches"), h=unit(1,"inches")))
> # copy to metafile or PDF from menu
> 
> fails.   This is the same from RGui or Rterm, and I've had one copy 
> succeed and then a second copy fail.
> 
> 


-- 
Dr Paul Murrell
Department of Statistics
The University of Auckland
Private Bag 92019
Auckland
New Zealand
64 9 3737599 x85392
paul at stat.auckland.ac.nz
http://www.stat.auckland.ac.nz/~paul/




More information about the R-help mailing list