Hi All: I'm using win.metafile() to produce windows metafiles. When I use Word to insert the wmf picture, Word gives an error! I did my homework in posting this question, and couldn't find a fix. Any suggestions? Phil Smith CDC
The following: win.metafile("c:/test.emf") plot(rnorm(10)) dev.off() works for me to create the enhanced windows metafile, which I can then insert into MS-Word. How are you creating the metafile in R? What is the error that MS-Word gives? Smith, Phil wrote:> Hi All: > > I'm using win.metafile() to produce windows metafiles. > > When I use Word to insert the wmf picture, Word gives an error! > > I did my homework in posting this question, and couldn't find a fix. > > Any suggestions? > > Phil Smith > CDC > > ______________________________________________ > R-help at stat.math.ethz.ch mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html >-- Chuck Cleland, Ph.D. NDRI, Inc. 71 West 23rd Street, 8th floor New York, NY 10010 tel: (212) 845-4495 (Tu, Th) tel: (732) 452-1424 (M, W, F) fax: (917) 438-0894
When you open the metafile with something like win.metafile(filename = file.name, width = 6.5, height = 6.5, pointsize 12) Where you have defined the file.name to include the path, you then, of course, execute the R logic to create the file. BUT, don't forget to close the file to tidy things up. Otherwise the file will be there, but it won't be useable. So your final statement should be dev.off() Charles Annis, P.E. Charles.Annis at StatisticalEngineering.com phone: 561-352-9699 eFax: 614-455-3265 http://www.StatisticalEngineering.com -----Original Message----- From: r-help-bounces at stat.math.ethz.ch [mailto:r-help-bounces at stat.math.ethz.ch] On Behalf Of Smith, Phil Sent: Friday, February 17, 2006 8:40 AM To: r-help at stat.math.ethz.ch Subject: [R] Windows metafile problem Hi All: I'm using win.metafile() to produce windows metafiles. When I use Word to insert the wmf picture, Word gives an error! I did my homework in posting this question, and couldn't find a fix. Any suggestions? Phil Smith CDC ______________________________________________ R-help at stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
Smith, Phil
2006-Feb-23 16:24 UTC
[R] svyby and svyratio in the Thomas Lumley's survey package
Dear R-ers: I'm using Thomas Lumley's "survey" package. I'd like to compute survey ratio estimates (numerator=~utd , denominator=~one) for each of serval domains using by=~factor(domain). I can't quite work out the syntax for the call to the "svyby" function. I try: svyby( numerator=~ utd, denominator=~one , by=~ factor(domain) , design=nis , svyratio ) and I get an error that says that "domain" is not found. (nis is the design object) Can someone steer me into the correct syntax? Thanks, Phil Smith CDC [[alternative HTML version deleted]]