I plot a simple linear regression using R. I would like to save that image as PNG or JPEG, is it possible to do it automatically? (via code)
There are two different
dev.copy(png,'path/pngFile.png') plot(YData ~ XData, data = mydata) dev.off()