Message-ID: <1291817439274-3078269.post@n4.nabble.com>
Date: 2010-12-08T14:10:39Z
From: Roger Bivand
Subject: How can I change the longitude scale on the plotMap() PBSmapping package
In-Reply-To: <AANLkTimTAEQx6tcuaV5UjcSm5rnwMX+3u33swgEtajaT@mail.gmail.com>
You cannot, plotMap() decides things for you. For more flexibility than:
polys <- data.frame(PID=rep(1,4), POS=1:4, X=c(0,1,1,0), Y=c(0,0,1,1))
plotMap(polys, xlim=c(-.5,1.5), ylim=c(-.5,1.5), projection="LL")
from the help page, consider trying:
library(sp)
library(maptools)
sp_polys <- PolySet2SpatialPolygons(as.PolySet(polys, projection="LL"),
close_polys=TRUE)
plot(sp_polys, xlim=c(-.5,1.5), ylim=c(-.5,1.5), axes=TRUE)
Also consider following up on the R-sig-geo list.
Roger
Fabio Caltabellotta wrote:
>
> Dear R-helpers,
>
> I am using the package PBSmapping and I have a question on the fuction
> plotMap:
>
>
> How can I change the longitude scale on data(worldLLhigh)? I changed
> the coordinates of ylim () and xlim () on the function plotMap to plot
> my study area. I would like to plot the Brazilian coastline that goes
> from the latitude -26.0?S to -21.0?S and longitude from -48.0?W to
> -45.0?W. However how can I change the scale value of xlim ranging from
> 312.0 to 315.0 for the scale of longitude 48.0W-and-45.0W to the same
> area?. Can anyone help me?
>
>
> Thanks,
>
>
>
>
>
>
> --
> Fabio Prior Caltabellotta, M.Sc.
> Doutorando em Zoologia - Campus Botucatu
> Universidade Estadual Paulista "J?lio de Mesquita Filho" - UNESP
> Laborat?rio de Pesquisa em Elasmobr?nquios
> http://lattes.cnpq.br/2735351775616389
> End: Pra?a Infante Dom Henrique s/n - Parque Bitar?
> 11330-150 - S?o Vicente-SP, Brasil
> Tel: +5511 81649946
>
> <:(((((<_____<")))><( `?.??.???`?.?.? <"))))>_____<:(((((<_____
>
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide
> http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>
>
-----
Roger Bivand
Economic Geography Section
Department of Economics
Norwegian School of Economics and Business Administration
Helleveien 30
N-5045 Bergen, Norway
--
View this message in context: http://r.789695.n4.nabble.com/How-can-I-change-the-longitude-scale-on-the-plotMap-PBSmapping-package-tp3076245p3078269.html
Sent from the R help mailing list archive at Nabble.com.