Hi all I am a complete newbie to this list (just subscribed) and a newcomer to R (an S user from olden times). I have been using scatter3d to create a 3d scatter plot with surface. The graphic is created within the rgl package and I have used rgl.postscript to export it so I can generate a publication quality image. My problem is that the plotted surface is no longer transparent in the postscript output ie. the rgl.spheres that are behind the surface disappear in the postscript image. Can't seem to find any info on this anywhere. Am I doing something wrong? Is there an easy fix? Anyway, thanks. Hope I've not broken some netiquette rule sending this. Cheers, Paul Fisher. -- Prof. Paul R. Fisher, Chair in Microbiology, La Trobe University, VIC 3086, AUSTRALIA. Tel. + 61 3 9479 2229 Fax. + 61 3 9479 1222 Email. fisher at lumi.latrobe.edu.au Web. http://www.latrobe.edu.au/mcbg/my.html
Dear Paul, I don't have experience with rgl.postscript(), which is relatively new, but find that the png graphs produced by rgl.snapshot() are of reasonably good quality and preserve transparency. Perhaps the developers of the rgl package can shed more light on the matter. I hope this helps, John -------------------------------- John Fox Department of Sociology McMaster University Hamilton, Ontario Canada L8S 4M4 905-525-9140x23604 http://socserv.mcmaster.ca/jfox --------------------------------> -----Original Message----- > From: r-help-bounces at stat.math.ethz.ch > [mailto:r-help-bounces at stat.math.ethz.ch] On Behalf Of Prof. > Paul R. Fisher > Sent: Wednesday, October 05, 2005 8:32 AM > To: r-help at stat.math.ethz.ch > Subject: [R] transparent surface in rgl > > Hi all > I am a complete newbie to this list (just subscribed) and a > newcomer to R (an S user from olden times). I have been using > scatter3d to create a 3d scatter plot with surface. The > graphic is created within the rgl package and I have used > rgl.postscript to export it so I can generate a publication > quality image. My problem is that the plotted surface is no > longer transparent in the postscript output ie. the > rgl.spheres that are behind the surface disappear in the > postscript image. Can't seem to find any info on this > anywhere. Am I doing something wrong? Is there an easy fix? > > Anyway, thanks. > Hope I've not broken some netiquette rule sending this. > > Cheers, > Paul Fisher. > -- > Prof. Paul R. Fisher, > Chair in Microbiology, > La Trobe University, > VIC 3086, > AUSTRALIA. > > Tel. + 61 3 9479 2229 > Fax. + 61 3 9479 1222 > Email. fisher at lumi.latrobe.edu.au > Web. http://www.latrobe.edu.au/mcbg/my.html > > ______________________________________________ > R-help at stat.math.ethz.ch mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide! > http://www.R-project.org/posting-guide.html
On 10/5/2005 9:31 AM, Prof. Paul R. Fisher wrote:> Hi all > I am a complete newbie to this list (just subscribed) and a newcomer to > R (an S user from olden times). I have been using scatter3d to create a > 3d scatter plot with surface. The graphic is created within the rgl > package and I have used rgl.postscript to export it so I can generate a > publication quality image. My problem is that the plotted surface is no > longer transparent in the postscript output ie. the rgl.spheres that are > behind the surface disappear in the postscript image. Can't seem to find > any info on this anywhere. Am I doing something wrong? Is there an easy fix?I think Postscript doesn't support transparency (or at least the version of Postscript that the rgl.postcript function targets doesn't support it). You may have to export a bitmapped format using the rgl.snapshot() function. If your original window is very large this may give you good enough quality. Duncan Murdoch
Prof. Paul R. Fisher a ??crit :> ... My problem is that the plotted surface is no > longer transparent in the postscript output ie. the rgl.spheres that are > behind the surface disappear in the postscript image. Can't seem to find > any info on this anywhere. Am I doing something wrong? Is there an easy fix?Hi, for many graphical function, eg bmp() there is a bg argument (background) which you can set to "transparent". Or you can directly use: par(bg="transparent") Have a look if this doesn't work. hih Vincent