| Format | Driver | Notes | 
| JPG | jpeg | Can be used anywhere, but doesn't resize | 
| PNG | png | Can be used anywhere, but doesn't resize | 
| WMF | win.metafile | Windows only; best choice with Word; easily resizable | 
| Best choice with pdflatex; easily resizable | ||
| Postscript | postscript | Best choice with latex and Open Office; easily resizable | 
> jpeg('rplot.jpg')
> plot(x,y)
> dev.off()
 > dev.copy(png,'myplot.png') > dev.off()Remember that when you save plots this way, the plot isn't actually written to the file until you call dev.off.