emf(file = "Rplot.emf", width = 7, height = 7,
bg = "transparent", fg = "black", pointsize = 12,
family = "Helvetica", custom.lty = FALSE)
"transparent"
, no background
color is painted."PS_USERSTYLE"
option, which does not appear to be supported The EMF specification does not allow for multiple pages; attempting to create multiple pages will result in a warning message and the output file will contain the different pages superimposed. Also, EMF does not allow for embedding fonts. Thus you must be careful that your desired font is present both on the system that you use when you create the emf file (i.e. when you run R) and on the system that you use to import/view the resulting file. Sticking to the standard Adobe PostScript font families is probably a good idea.
EMF has full Unicode character support, and this package tries to maintain full support as well. However, the font metric information is clunkily borrowed from the R postscript device and will not to work properly for non-Latin character sets.
EMF-level clipping is not yet implemented, since R appears to take care of this; however, if you see a problem that could be the result a clipping bug, please contact the author.
Devices
require(devEMF)
# open file "bar.emf" for graphics output
emf("bar.emf")
# produce the desired graph(s)
dev.off() #turn off device and finalize file
Run the code above in your browser using DataLab