Skip to content

Reducing the size of the R-produced maps while saving

3 messages · Dimitri Liakhovitski, Edzer Pebesma, Roger Bivand

#
Dear map-gurus,

I am creating some country maps using spplot from library(raster).
Once I've created a map, I save it as an .emf file. .emf format is
important for me because I can have transparent background.
However, once the map is saved, I am getting a huge .emf file (e.g., 74 MB).
Is there any way to save it in a smaller size?

Thanks a lot!
#
On 01/31/2012 05:02 PM, Dimitri Liakhovitski wrote:
The usual advice is to use a bitmap format, e.g. png, which supports
transparency, and with sufficient pixel dimensions.

See ?png and do read the Details section.
#
On Tue, 31 Jan 2012, Dimitri Liakhovitski wrote:

            
If you have to use a vector output format, then you should simplify the 
input, which has extremely detailed coastlines but coarser resolution 
administrative boundaries. Maybe try gSimplify() in rgeos.

Roger