R is a very good statistical tools. This guide teach you how to output eps or other formats from R.
R treats output sources as a device, so we must assign a device first( the default device is X windows).
postscript(“RPlot.eps”, height = 4, width = 4, horizontal = FALSE, onefile = FALSE, paper = “special”)
plot(1:5)
dev.off()
The firs line opens a device. The second line draws the graph. The third line saves the graph.