[R-sig-Geo] dismo:::gmap - how to obtain a 1:1 plot

Ivailo ubuntero.9161 at gmail.com
Tue Jul 2 09:31:35 CEST 2013


Dear R-geo folks,

I am trying to plot some points with gmap(), but the resulting plot is
not the same quality as the (temporarily) stored TIFF file.

My workflow is as follows:

1. get the point coordinates and make them a SpatialPointsDataFrame
2. get a map tile containing the points: localities_map <-
gmap(localities, type = 'terrain', scale = 2) # to get a larger tile
3. re-project localities to Mercator
4. plot(localities_map) and
5. add the points

The the problem is that the resulting plot seems not to be a 1:1
representation of the TIFF file it's based on. I have also tried to
plot directly to a png() device, and even when specifying the size
*and* resolution reported by the RasterLayer where the gmap object is
stored, the plotted map (especially the labels) looks somewhat jagged.

 Is there a way to produce a plot that contains the stored TIFF file
as it is (i.e. 1:1)?

Thanks,
Ivailo
--
UBUNTU: a person is a person through other persons.



More information about the R-sig-Geo mailing list