[R] Background only white when using rgl.postscript()

Vegard Andersen veand at frisurf.no
Fri Nov 4 14:05:05 CET 2005


Hello!

I use scatter3D() to produce my graphics. This works as expected, and I am  
able to set my background color to "black". But when I write to file using  
rgl.postscript(), the background color changes to white.

Can anyone tell me how I can avoid this problem?

Example code:

# Produces 3D graph with black background:
scatter3d(X, Y, Z, bg="black")

# Writes a file which has white background:
rgl.postscript("c://test//test3D.eps", fmt="eps")


Thanks in advance!

Best regards,
Vegard Andersen
Institute of Community Medicine
University of Tromso, Norway.




More information about the R-help mailing list