I want to make a poster with graphs imported from R, using the ggplot package.
- I could export the images as png, but they look pixelised on a big file.
- I would have liked to import SVG but it's not possible in microsoft powerpoint.
- win.metafile() is the solution
Took me a while to figure out that the windows metafile is also a scalable graphic format. It can be used as such:
win.metafile("file name.emf",width=17, height=9) # width and height in inches,
# You can divide by 72 to have the size in pixel
ggplot() + geom_line(data=dtf, aes(...))
dev.off()