I am preparing a paper for submission to a journal which requires vector graphics to be submitted in EPS format, with all text within figures converted to outlines. Converting text to vector outlines helps avoid font problems in the final layout. The journal requirements are available here.
EPS figures can easily be created in R using ggplot2
:
library(ggplot2)
ggsave(filename = "file.eps")
or using setEPS()
and the postscript
device, as explained previously here:
setEPS()
postscript("filename.eps")
plot(1:10)
dev.off()
My question is: how can you convert text within the figures into vector outlines? I have found information on how to do this in other software (e.g. Illustrator or InDesign), but I would like to know if there is a way to do it directly in R.