Dear List, I am not sure if this is a R-related question or a R-Excel question: When I try to run the code below from a macro in Excel with the command : Call RInterface.RunRFile(Range("Scriptsti")) only the the frame is returned in the .wmf file. However reading the data into R and running the code from there gives the desired graph. The "structure" below works fine with other plot types. I have tried to use savePlot() as well, to a file or to the clipboard with the same result, only the frame is returned. My guess is that xyplot is "different" from other plots, when I for instance try to add a title(main="....") I get an error sayin that plot.new() hasn't been run yet. library(lattice) win.metafile(paste(GraphPathB), pointsize = 14) xyplot(OrgData$Rel.Area~OrgData$Time|OrgData$Batch,groups=OrgData$Compound, type="b",lty=1, xlab="Time (Hours)", ylab="Relative area (%)", auto.key = list(points = TRUE, space = "right")) dev.off()
Any comments are very much appreciated With kind regards Jens Strodl Andersen Senior Statistiker, PhD Biometrics Medical Writing ALK Bøge Allé 6-8 DK-2970 Hørsholm Denmark T +45 45 74 75 76 F +45 45 74 86 90 M +45 40 61 86 94 E [EMAIL PROTECTED] W www.alk-abello.com <http://www.alk-abello.com/> <http://www.alk-abello.com/> <http://www.grazax.com/> ******************************************************************************************************************************************************************************** This e-mail is for the intended recipient(s) only and contains information or material, which may be confidential and/or legally privileged. If you are not the intended recipient, any disclosure, copying, use, distribution or retaining of the information or material contained in this e-mail is unauthorised and prohibited. Please notify the sender immediately by e-mail if you have received it by mistake and delete the e-mail immediately from your system. ALK-Abello disclaims all responsibility and accepts no liability in respect of the content, information and material contained in this e-mail or for the consequences for any person acting, or refraining from acting on such information and material, and makes no warranty as to accuracy or completeness of this e-mail. ALK-Abello disclaims all responsibility and accepts no liability for any computer virus which might be transferred by way of this e-mail. ********************************************************************************************************************************************************************************
<<email_signature_ALK_Logo.gif>>
<<email_signatur_Grazax_Logo.gif>>
_______________________________________________ Rcom-l mailing list Rcom-l@mailman.csd.univie.ac.at http://mailman.csd.univie.ac.at/mailman/listinfo/rcom-l More information (including a Wiki) at http://rcom.univie.ac.at