Re: [R] Shrink file size of pdf graphics

2011-05-22 Thread Layman123
Thank you very much for the tip! Using imagemagick i got an image of reasonable quality without making the file size that large. Regards Roman Von: "Philipp Pagel-5 [via R]" Gesendet: 20.05.2011 09:50:42 An: Layman123 Betre

Re: [R] Shrink file size of pdf graphics

2011-05-20 Thread Philipp Pagel
On Thu, May 19, 2011 at 01:35:51PM -0700, Layman123 wrote: > I tried both, the plot devices in R and pdftk. First I tried the png-device, > but as I wanted to increase the number of pixels with 'width' and 'height', > the labels are getting smaller When I really need a png, I usually produce a pd

Re: [R] Shrink file size of pdf graphics

2011-05-19 Thread Layman123
Thank you all for the quick answers! I googled first instead of having the idea to search this forum... I'm using R 2.12.2 on a 32-bit Computer with windows installed. Up to this point I was trying to get the image the way I would like to have it, but didn't get fully satisfactory results. I trie

Re: [R] Shrink file size of pdf graphics

2011-05-19 Thread Aaron Mackey
You can try something like this, at the command line: gs -sDEVICE=pdfwrite -dCompatibilityLevel=1.5 -dPDFSETTINGS=/screen -dNOPAUSE -dQUIET -dBATCH -sOutputFile=output.pdf input.pdf evidently, the new compactPDF() function in R 2.13 does something very similar. -Aaron On Thu, May 19, 2011 at

Re: [R] Shrink file size of pdf graphics

2011-05-19 Thread Duncan Murdoch
On 19/05/2011 11:14 AM, Layman123 wrote: Hi everyone, My data consists of a system of nearly 75000 roads, available as a shapefile. When I plot the road system, by adding the individual roads with 'lines' and store it as a pdf-file with 'pdf' I get a file of size 13 MB. This is way too large to

Re: [R] Shrink file size of pdf graphics

2011-05-19 Thread Prof Brian Ripley
This was answered on this list a few days ago. See https://stat.ethz.ch/pipermail/r-help/2011-May/278029.html On Thu, 19 May 2011, Layman123 wrote: Hi everyone, My data consists of a system of nearly 75000 roads, available as a shapefile. When I plot the road system, by adding the individual