Note that savePlot() supersedes dev.copy2eps(), which was used in older versions of the programs.Įquivalents for windows() in other operating systems:
File formats that work with savePlot() in Windows include 'jpg', 'pdf', 'eps', etc. Use the savePlot() command after the graph is drawn, with an appropriate argument to specify the desired format.
Use the windows()command to open a new graphics window.Ģ. Do this repeatedly, for a succession of graphs.ġ. I use Windows, so the info here about MacOS and Linux is what I've learned from readers, and I haven't tried it myself. Here's what I know so far - but please let me know better ways and I'll update this post.