[R-sig-Geo] Generating a precise map from coordinates.

Mauricio Zambrano-Bigiarini mauricio.zambrano at jrc.ec.europa.eu
Mon Mar 19 09:10:52 CET 2012


On 19/03/12 04:50, Agus Camacho wrote:
> Hello all,
>
> I am still new to plot maps in R and trying to plot the object (wrld_simpl)
> from maptools. However found it difficult to plot a map with precise
> coordinates.
>
> The following series of plots shows what I am talking about:
> The margins of the plot are those specified only in some cases but others
> not. Anybody could give me a hint to generate maps from coordinates without
> having to be fishing a set of coordinates that looks good?

Did you look at :

http://r-spatial.sourceforge.net/gallery/
http://cran.r-project.org/web/views/Spatial.html

?

IHTH,

Mauricio Zambrano-Bigiarini

-- 
=======================================================
FLOODS Action
Water Resources Unit (H01)
Institute for Environment and Sustainability (IES)
European Commission, Joint Research Centre (JRC)
TP 261, Via Enrico Fermi 2749, 21027 Ispra (VA), Italy
webinfo    : http://floods.jrc.ec.europa.eu/
work-phone : (+39)-(0332)-789588
work-fax   : (+39)-(0332)-786653
=======================================================
DISCLAIMER:
"The views expressed are purely those of the writer
and may not in any circumstances be regarded as stating
an official position of the European Commission."
=======================================================
Linux user #454569 -- Ubuntu user #17469
=======================================================
"If Columbus had turned back, no one would have blamed him.
Of course, no one would have remembered him either."
(Source Unknown)


>
> plot(wrld_simpl, xlim=c(100,160), ylim=c(-45,10), axes=TRUE,col='light
> yellow')
> plot(wrld_simpl, xlim=c(100,160), ylim=c(-40,-10), axes=TRUE,col='light
> yellow')
> plot(wrld_simpl, xlim=c(100,160), ylim=c(-40,-15), axes=TRUE,col='light
> yellow')
> plot(wrld_simpl, xlim=c(100,160), ylim=c(-40,-20), axes=TRUE,col='light
> yellow')
> plot(wrld_simpl, xlim=c(100,160), ylim=c(-40,-25), axes=TRUE,col='light
> yellow')
> plot(wrld_simpl, xlim=c(115,160), ylim=c(-40,-25), axes=TRUE,col='light
> yellow')
> plot(wrld_simpl, xlim=c(115,155), ylim=c(-40,-25), axes=TRUE,col='light
> yellow')
> plot(wrld_simpl, xlim=c(115,155), ylim=c(-40,-20), axes=TRUE,col='light
> yellow')
> plot(wrld_simpl, xlim=c(115,155), ylim=c(-40,-15), axes=TRUE,col='light
> yellow')
> plot(wrld_simpl, xlim=c(115,155), ylim=c(-40,-14), axes=TRUE,col='light
> yellow')
>
>
>
>
>
> _______________________________________________
> 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