Two ways to save a plot in png.

dev.copy() saves the plot with transparent background while savePlot() with white background.
See the difference.

dev.copy(device = png, file = "devcopy.png")
dev.off()
savePlot(file = "saveplot.png")

Saved by dev.copy()
Saved by savePlot()

Two ways to save a plot in png…
Tagged on:         

Leave a Reply

Your email address will not be published. Required fields are marked *