RE: [R] Metafiiles into Word R 1.9.0

About this list Date view Thread view Subject view Author view Attachment view

From: Jesus Frias (Jesus.Frias@dit.ie)
Date: Wed 26 May 2004 - 19:45:51 EST


Message-id: <LGECJJCANFBOOHCMGPJEAEGJDDAA.Jesus.Frias@dit.ie>

Hi again,

        Thanks a lot to Jason Turner for the hint to the FAQ-windows. savePlot()
seems to be in trouble with lattice objects as much as any other device,
which I did not know. I can generate now the metafiles:

> library(lattice)
> example(xyplot)
> win.metafile()
> print(dotplot(variety ~ yield | year * site, data = barley))
> dev.off()
windows
      2

        This gives an alternative solution to the problem I had with the drop-down
menu on the windows() device "Copy as metafile".

best regards,

Jesus

--------------------------------------------------------------
Jesús María Frías Celayeta
School of Food Sci. and Env. Health.
Faculty of Tourism and Food
Dublin Institute of Technology
Cathal Brugha St., Dublin 1. Ireland
t +353 1 4024459 f +353 1 4024495
w www.dit.ie/DIT/tourismfood/science/staff/frias.html
--------------------------------------------------------------

> -----Original Message-----
> From: Jason Turner [mailto:jasont@indigoindustrial.co.nz]
> Sent: 26 May 2004 22:11
> To: Jesus Frias
> Subject: RE: [R] Metafiiles into Word R 1.9.0
>
>
> > There is one more thing that might shed some light (or not)
> on it: I have
> > just found that I can actually copy-paste a plot in the device
> coming from
> > a
> > plot call but not from a lattice object call. There it is my
> toy example:
> >
> >> example(plot)
> >> savePlot("exampleplot.wmf",type="wmf")
> >> library(lattice)
> >> example(xyplot)
> >> savePlot("examplexyplot.wmf",type="wmf")
> >
> > I have no problem importing exampleplot.wmf into Word, but
> I can't do the
> > same with examplexyplot.wmf. The file seems empty, it has only
> 696 bytes.
> >
>
> Yes, it does shed light. This is a FAQ.
>
> http://cran.au.r-project.org/doc/FAQ/R-FAQ.html#Why%20do%20lattice
%2ftrellis%20graphics%20not%20work%3f

Cheers

Jason

--
This message has been scanned for content and
viruses by the DIT Information Services MailScanner
Service, and is believed to be clean.
http://www.dit.ie

-- This message has been scanned for content and viruses by the DIT Information Services MailScanner Service, and is believed to be clean. http://www.dit.ie

______________________________________________ R-help@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


About this list Date view Thread view Subject view Author view Attachment view

This archive was generated by hypermail 2.1.3 : Mon 31 May 2004 - 23:05:12 EST