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

Alexandre Villers villers.alexandre at gmail.com
Tue Jul 2 13:40:11 CEST 2013


Hi,

There is an asp options in par. It works with plot and image
plot(x,y, asp=1) or image(x, asp=1) should produce what you're looking for

HTH

Alex

On 02/07/2013 10:31, Ivailo wrote:
> 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.
>
> _______________________________________________
> R-sig-Geo mailing list
> R-sig-Geo at r-project.org
> https://stat.ethz.ch/mailman/listinfo/r-sig-geo
>
>



More information about the R-sig-Geo mailing list