Prof Brian Ripley said the following at 07/31/2007 12:20 PM :
You are *copying* the plot, and that means copying the background too (it
*is* part of the plot). Almost certainly the plot you are copying had a
transparent background: that is the default for X11.
All the confusion seems to be
Both of these work for me:
par(bg=red)
plot(1:10)
dev.print(png, width=800, height=600, filename=tmp.png)
and
png(tmp.png, width=800, height=600, bg=red)
plot(1:10)
dev.off()
Best,
Jim
D. R. Evans wrote:
I am not understanding something about generating PNG plots.
I have tried several
On Tue, 2007-07-31 at 10:22 -0600, D. R. Evans wrote:
I am not understanding something about generating PNG plots.
I have tried several ways to obtain something other than a transparent
background, but nothing I've done seems to change the background.
For example:
dev.print(png,
On 31/07/07, Gavin Simpson [EMAIL PROTECTED] wrote:
On Tue, 2007-07-31 at 10:22 -0600, D. R. Evans wrote:
I am not understanding something about generating PNG plots.
I have tried several ways to obtain something other than a transparent
background, but nothing I've done seems to change
You are *copying* the plot, and that means copying the background too (it
*is* part of the plot). Almost certainly the plot you are copying had a
transparent background: that is the default for X11.
All the confusion seems to be over misreadings of this.
On Tue, 31 Jul 2007, Gavin Simpson