31 January 2013

r plot


Saving the plot beforehand
jpeg('rplot.jpg')
plot(x,y)
dev.off()

If error for above, save current active plot
dev.copy(png,'myplot.png')
dev.off()

No comments:

Post a Comment