1) Create the desired figure in R and export as an eps file:
library(ggplot2)
postscript("myfig.eps",horizontal=FALSE, paper="special",height=10,width=10)
qplot(x,y,data=mydat)
dev.off()
2) Install the necessary software on your computer, and then convert the image file to one more easily edited.
#install software
sudo aptitude install pstoedit tgif
#clean up the eps file so it is more easily read
eps2eps myfig.eps myfig2.eps
#convert the eps file to a tgif object
pstoedit -f tgif myfig2.eps myfig2.obj
3) Edit the new file myfig2.obj in tgif.
No comments:
Post a Comment