Re: [R] World plots and clipping regions

From: Ray Brownrigg <Ray.Brownrigg_at_ecs.vuw.ac.nz>
Date: Mon, 28 Mar 2011 09:29:11 +1300

Not with the code as it is provided. However with a reasonably easy modification to map.grid() (to return the coordinates of the red dotted line) and a call to polygon(), what you want can be achieved.

Let me know if you need further details.

Ray Brownrigg

On 03/26/11 10:11, Saptarshi Guha wrote:
> Hello,
>
> Given the following display
>
> library(maps)
> library(mapproj)
>
> m <- map('world',plot=FALSE)
> map('world',proj='mollweide',bg=bgcolor[2],col='white')
> map.grid(col=2,lim=c(-175,-175,-180,180),label=FALSE,lty=2)
>
> Is there a way to color the region outside the dotted red border?
>
> Thank you
> Saptarshi



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. Received on Sun 27 Mar 2011 - 20:31:49 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Sun 27 Mar 2011 - 20:40:25 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive