Re: [R] PDF too large, PNG bad quality

2009-10-30 Thread Deepayan Sarkar
On Fri, Oct 23, 2009 at 1:54 AM, Jim Lemon j...@bitwrit.com.au wrote: On 10/23/2009 06:07 AM, Lasse Kliemann wrote: I wish to save a scatter plot comprising approx. 2 million points in order to include it in a LaTeX document. Using 'pdf(...)' produces a file of size about 20 MB, which is

Re: [R] PDF too large, PNG bad quality

2009-10-26 Thread Greg Snow
-project.org Subject: Re: [R] PDF too large, PNG bad quality * Message by -Greg Snow- from Thu 2009-10-22: If you want to go the pdf route, then you need to find some way to reduce redundant information while still getting the main points of the plot. With so many point, I would suggest

Re: [R] PDF too large, PNG bad quality

2009-10-23 Thread Jim Lemon
On 10/23/2009 06:07 AM, Lasse Kliemann wrote: I wish to save a scatter plot comprising approx. 2 million points in order to include it in a LaTeX document. Using 'pdf(...)' produces a file of size about 20 MB, which is useless. Using 'cairo_pdf(...)' produces a smaller file, around 3 MB. This

Re: [R] PDF too large, PNG bad quality

2009-10-23 Thread Vijaya Parthiban
Hello Lasse, Why not try this? (1) Create 20MB PDF from R (2) use convert command in linux, examples below: convert -resize 50% 20mbfile.pdf smallerfile.pdf convert -resize 75% 20mbfile.pdf image.png Ghostscript can help you as well for conversion! Using vector formats (pdf,ps,eps) are good

[R] PDF too large, PNG bad quality

2009-10-22 Thread Lasse Kliemann
I wish to save a scatter plot comprising approx. 2 million points in order to include it in a LaTeX document. Using 'pdf(...)' produces a file of size about 20 MB, which is useless. Using 'cairo_pdf(...)' produces a smaller file, around 3 MB. This is still too large. Not only that the document

Re: [R] PDF too large, PNG bad quality

2009-10-22 Thread Benilton Carvalho
Dear Lasse, This won't answer your specific questions and I apologize for that. AFAIK, pdf() produces uncompressed PDFs only. But you could use tools like pdftk to compress your PDFs. About the PNGs, you can always set the 'res' argument to improve resolution, but it won't beat the PDFs.

Re: [R] PDF too large, PNG bad quality

2009-10-22 Thread Greg Snow
greg.s...@imail.org 801.408.8111 -Original Message- From: r-help-boun...@r-project.org [mailto:r-help-boun...@r- project.org] On Behalf Of Lasse Kliemann Sent: Thursday, October 22, 2009 1:07 PM To: r-help@r-project.org Subject: [R] PDF too large, PNG bad quality I wish to save

Re: [R] PDF too large, PNG bad quality

2009-10-22 Thread Barry Rowlingson
On Thu, Oct 22, 2009 at 8:28 PM, Greg Snow greg.s...@imail.org wrote: The problem with the pdf files is that they are storing the information for every one of your points, even the ones that are overplotted by other points.  The png file is smaller because it only stores information on which

Re: [R] PDF too large, PNG bad quality

2009-10-22 Thread Greg Snow
-Original Message- From: b.rowling...@googlemail.com [mailto:b.rowling...@googlemail.com] On Behalf Of Barry Rowlingson Sent: Thursday, October 22, 2009 2:43 PM To: Greg Snow Cc: Lasse Kliemann; r-help@r-project.org Subject: Re: [R] PDF too large, PNG bad quality On Thu, Oct 22, 2009

Re: [R] PDF too large, PNG bad quality

2009-10-22 Thread Lasse Kliemann
* Message by -Greg Snow- from Thu 2009-10-22: If you want to go the pdf route, then you need to find some way to reduce redundant information while still getting the main points of the plot. With so many point, I would suggest looking at the hexbin package (bioconductor I think) as one