I am trying to export a simple plot to .png with a transparent background. I can export it, but the background remains white.
Layout Example
x = c(1, 2, 3)
I tried this
plot (x)
dev.copy (png,'myplot.png', bg = 'transparent')
dev.off()
And this one
plot (x, bg = 'transparent')
dev.copy (png,'myplot.png')
dev.off()
But no one is working.
Can anyone help?
source
share