Re: [R] How can I change the longitude scale on the plotMap() PBSmapping package

2010-12-08 Thread Roger Bivand
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 <- PolySe

[R] How can I change the longitude scale on the plotMap() PBSmapping package

2010-12-07 Thread Fabio Caltabellotta
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