[R-sig-Geo] Export a trellis object as a pdf, jpg or similar

Rolf Turner r.turner at auckland.ac.nz
Thu Dec 6 21:56:17 CET 2012


On 07/12/12 08:36, Ester Polaina Lacambra wrote:
> Hello everyone!
>
> I am drawing maps using spplot function, from sp package, and I am
> experiencing problems in visualizing my maps because apparently the volume
> of data is big. To avoid waiting I've thought in creating an object and
> then export it in another format such as pdf, jpg, png...
>
> I've tried pdf(), png(), but what it is recorded is an empty file. What
> else can I try?
>
> Or if not, is there any way of diminishing the time R takes to show the map
> I'm drawing?
>
> I let here my trellis object:
>
> world_threat <- spplot(World_map, "total_amenazadas", at=world_pretty$brks,
> col.regions=pal, sp.layout=spl, col = "grey30")
>
> Thank you very much.

FAQ 7.22.  See also:

     fortune("confuse people")


     cheers,

         Rolf Turner



More information about the R-sig-Geo mailing list