[R] Re: gray background on jpegs using dev.print()
John Muller
jmuller at mindspring.com
Thu Apr 1 18:25:24 CEST 2004
I get the gray background when I use plot to write to the screen
and then try to write the screen contents to a file using
dev.print(jpeg, file="H:/Secondary/cycle_time/test.jpg",width=800,quality=100,bg="white") ;
I have also tried using bg = "#FFFFFF" instead of bg="white"
and have also tried using par to set the background color as in
par(bg="#FFFFFF") ;
dev.print(jpeg, file="H:/Secondary/cycle_time/test.jpg",width=800,quality=100,bg="white") ;
None of these seem to affect the background color of the jpeg image.
- john
-----Original Message-----
From: John Muller <jmuller at mindspring.com>
Sent: Apr 1, 2004 11:05 AM
To: r-help at stat.math.ethz.ch
Subject: gray background on jpegs using dev.print()
When I try writing the current device to a jpeg file I keep getting a gray background
for the jpeg images using dev.print.
I have tried using the option bg="white" and bg="#FFFFFF"
but neither seem to have any effect.
If instead of writing to a screen device I open a jpeg device I can get any background color
I want. This works, but I prefer to write to the screen and then
output to file if I like the results rather than to a file and have to view the jpegs
to see results.
I am using R version 1.8.1 on Windows 2000.
Has anyone else had this problem?
If so please let me know, especially if you found a better workaround or a fix.
- john muller
More information about the R-help
mailing list