[R] Printing Lattice Graphs from Windows

Spencer Graves spencer.graves at pdf.com
Sun Jun 6 21:26:45 CEST 2004


      Using R 1.9.1 alpha via XEmacs with ESS under Windows 2000, I did 
the following: 

      library(lattice)
      xyplot(1~1)

      I got the plot in a separate window, from which I did File -> Copy 
to the clipboard -> as a metafile.  I then changed to MS Word, and it 
pasted fine. 

      When I started R 1.9.1 alpha directly (without XEmacs) and tried 
the same thing, I got a standard lattice plot.  However, when I tried 
File -> Copy to the clipboard -> as a metafile, I got a blank plot when 
copying into MS Word.  When I copied as a bitmap, it came through fine.  
However, I suspect that is unacceptable. 

      Conclusion:   ESS with Emacs or XEmacs could provide you an 
alternative to 'dev.copy', etc., suggested by Ulises Mora Alverez. 

      hope this helps.  spencer graves    

Ulises Mora Alvarez wrote:

>Hi!
>
>Take a look at the help pages of 'dev.print', 'dev.copy' and 
>'dev.copy2eps'. These functions are very simple to use and, depending on 
>your system, give you a lot of choises.
>
>Regards.
>
>
>On Sun, 6 Jun 2004, Charles and Kimberly Maner wrote:
>
>  
>
>>Hello.  I have researched this topic and have found no answers.  I am
>>running R 1.9.0 and am trying to print a lattice graph, (e.g., xyplot(1~1)),
>>using mouse right click -> print.  It produces a blank page.  Also, I right
>>clich, copy the metafile and paste into a MS Office document, (e.g., .ppt,
>>.doc) and, same thing, a blank.  I have updated to the latest lattice
>>package and still no printing.  Any help/advice?
>>
>>
>>Thanks,
>>Charles
>>
>>______________________________________________
>>R-help at stat.math.ethz.ch mailing list
>>https://www.stat.math.ethz.ch/mailman/listinfo/r-help
>>PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
>>
>>    
>>
>
>  
>




More information about the R-help mailing list