Re: [R] Shrink file size of pdf graphics

From: Prof Brian Ripley <ripley_at_stats.ox.ac.uk>
Date: Thu, 19 May 2011 16:26:38 +0100 (BST)

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 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 add it in my LaTeX-document, because there will be
> some more graphics of this type.
> Now I'm curious to learn wheter there is a possibility in R to shrink the
> file size of this graphic? I merely need it in a resolution so that it looks
> "smooth" when printed out. I don't know much about the storage of R
> graphics, but maybe there is a way to change the way the file is stored
> perhaps as a pixel image?

Of course! What does ?Devices show on your unstated system and unstated R version? Most likely it will contain something like

         • ‘png’ PNG bitmap device

         • ‘jpeg’ JPEG bitmap device

         • ‘bmp’ BMP bitmap device

         • ‘tiff’ TIFF bitmap device

         • ‘bitmap’ bitmap pseudo-device via ‘Ghostscript’ (if
           available).

> Thank you very much in advance! Any tips are appreciated much!

Tip: follow the footer of this message and do your homework before posting.

> Regards
> Roman
>
> ______________________________________________
> R-help_at_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,                  ripley_at_stats.ox.ac.uk
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, UK                Fax:  +44 1865 272595


______________________________________________ R-help_at_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.

Received on Thu 19 May 2011 - 15:30:52 GMT

This quarter's messages: by month, or sorted: [ by date ] [ by thread ] [ by subject ] [ by author ]

All messages

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Thu 19 May 2011 - 15:40:07 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive