Re: [R] Scatter plot transparency
Thanks, I think I've got it on Mac. Will try with my windows station tomorrow. Best, Anh Tran On Jun 21, 2008, at 12:05 AM, Prof Brian Ripley wrote: Please see the footer of this message. What do you want to be transparent, and what did you use to try to get it (there are many possibilities)? What OS and version of R is this? Note that the default value of "bg" for the png() and tiff() devices is "white", and the Windows version of the tiff() device does not support transparency. But png(bg="transparent") does give a transparent background. On Fri, 20 Jun 2008, Anh Tran wrote: Hi all, I'm putting a few plots together and wondering what format would be best to export a few scatter plots to Illustrator to make a figure. I'm thinking about overlaying some plot in Illustrator, so the export file type has to be transparent for Illustrator (version 10). I tried PNG and TIFF, but it does not seems to have transparency that is recognized by Illustrator (or Photoshop for that matter). EMF (meta data file) on the other hand is very good. The only problem is that every dot on the plot becomes a vector, which slows the program down considerably (I have about 200k dots on a graph). So, is there a good way to import these plot in as picture so I can use them as layer for Illustrator (Photoshop would be fine too). Thank you all. -- Regards, Anh Tran [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- Brian D. Ripley, [EMAIL PROTECTED] Professor of Applied Statistics, http://www.stats.ox.ac.uk/~ripley/ University of Oxford, Tel: +44 1865 272861 (self) 1 South Parks Road, +44 1865 272866 (PA) Oxford OX1 3TG, UKFax: +44 1865 272595 __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.
Re: [R] Scatter plot transparency
Please see the footer of this message. What do you want to be transparent, and what did you use to try to get it (there are many possibilities)? What OS and version of R is this? Note that the default value of "bg" for the png() and tiff() devices is "white", and the Windows version of the tiff() device does not support transparency. But png(bg="transparent") does give a transparent background. On Fri, 20 Jun 2008, Anh Tran wrote: Hi all, I'm putting a few plots together and wondering what format would be best to export a few scatter plots to Illustrator to make a figure. I'm thinking about overlaying some plot in Illustrator, so the export file type has to be transparent for Illustrator (version 10). I tried PNG and TIFF, but it does not seems to have transparency that is recognized by Illustrator (or Photoshop for that matter). EMF (meta data file) on the other hand is very good. The only problem is that every dot on the plot becomes a vector, which slows the program down considerably (I have about 200k dots on a graph). So, is there a good way to import these plot in as picture so I can use them as layer for Illustrator (Photoshop would be fine too). Thank you all. -- Regards, Anh Tran [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- Brian D. Ripley, [EMAIL PROTECTED] Professor of Applied Statistics, http://www.stats.ox.ac.uk/~ripley/ University of Oxford, Tel: +44 1865 272861 (self) 1 South Parks Road, +44 1865 272866 (PA) Oxford OX1 3TG, UKFax: +44 1865 272595 __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.
Re: [R] Scatter plot transparency
Hi Anh, I donĀ“t know if I understood your point fine. I generate a scatterplot, and open it on adobe photoshop 7.0 with tranparent background. setwd("c:\\temp") x<-runif(100) y<-rnorm(100) png("transparent_scatterplot.png", 800, 600, bg="transparent") plot(y~x) dev.off() I hope this help, miltinho Brazil On 6/20/08, Anh Tran <[EMAIL PROTECTED]> wrote: > > Hi all, > I'm putting a few plots together and wondering what format would be best to > export a few scatter plots to Illustrator to make a figure. I'm thinking > about overlaying some plot in Illustrator, so the export file type has to > be > transparent for Illustrator (version 10). > I tried PNG and TIFF, but it does not seems to have transparency that is > recognized by Illustrator (or Photoshop for that matter). > > EMF (meta data file) on the other hand is very good. The only problem is > that every dot on the plot becomes a vector, which slows the program down > considerably (I have about 200k dots on a graph). > > So, is there a good way to import these plot in as picture so I can use > them > as layer for Illustrator (Photoshop would be fine too). > > Thank you all. > > -- > Regards, > Anh Tran > >[[alternative HTML version deleted]] > > __ > R-help@r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide > http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. > [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.
[R] Scatter plot transparency
Hi all, I'm putting a few plots together and wondering what format would be best to export a few scatter plots to Illustrator to make a figure. I'm thinking about overlaying some plot in Illustrator, so the export file type has to be transparent for Illustrator (version 10). I tried PNG and TIFF, but it does not seems to have transparency that is recognized by Illustrator (or Photoshop for that matter). EMF (meta data file) on the other hand is very good. The only problem is that every dot on the plot becomes a vector, which slows the program down considerably (I have about 200k dots on a graph). So, is there a good way to import these plot in as picture so I can use them as layer for Illustrator (Photoshop would be fine too). Thank you all. -- Regards, Anh Tran [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.