[R] gray background on jpegs using dev.print()

Liaw, Andy andy_liaw at merck.com
Thu Apr 1 18:14:30 CEST 2004


You have not shown us how you call dev.print() or the commands preceding
that.  Did you specify the bg="white" in the call to dev.print()?

Andy

> From: John Muller
> 
> 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
> 
> ______________________________________________
> R-help at stat.math.ethz.ch mailing list
> https://www.stat.math.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide! 
> http://www.R-project.org/posting-guide.html
> 
> 


------------------------------------------------------------------------------
Notice:  This e-mail message, together with any attachments,...{{dropped}}




More information about the R-help mailing list