[R] map - mapproj : problem of states localisation

Ray Brownrigg Ray.Brownrigg at mcs.vuw.ac.nz
Thu Nov 15 20:35:21 CET 2007


On Fri, 16 Nov 2007, Tom Minka wrote:
> I haven't seen the original code, but the problem with Ray's code is that
> the two projections are not synchronized.  Specifically, they are using
> different (default) values for the orientation.  To synchronize the
> projections, either specify the orientation parameter for both, or the
> second one should use proj="", as follows:
>
> map("france", proj="lambert", pa=c(30, 60))
> map("world", proj="", lwd=1, col="red", add=TRUE)  # reuse previous
> projection
>
> Tom
>
Thanks for that, Tom.  That does 'fix' the original code.  So basically the 
response is RTFM :-).

I had forgotten about that aspect of projections, since I don't use them 
myself.

Regards,
Ray



More information about the R-help mailing list