[R] map of china without regions

Ray Brownrigg Ray.Brownrigg at ecs.vuw.ac.nz
Thu Apr 16 22:21:06 CEST 2009


Sorry, can't be done at the moment with the maps package.

The "china" map database is based on data which was provided in latitude/longitude 
rectangles, and has not been properly processed to generate the line segments and 
polygons that the maps package uses to choose individual provinces or to suppress 
interior lines.

It's on my TODO list, but quite a way down.  :-(

You *might* be able to achieve what you want by selecting only those line segments that 
provide portions of the external border, but I would suggest that other packages (perhaps 
someone will suggest the best) are more likely to be able to provide what you want 
without so much effort.

HTH
Ray Brownrigg

On Fri, 17 Apr 2009, Cuvelier Etienne wrote:
> Hello,
> I use the map package in conjunction with the mapdata package,
> and I want to draw the map of China without  interior regions.
> After reading the doc and searched in this mailing list I've tried
> map("china",interior=FALSE)
> and
> map("china",fill=TRUE)
>
> but I allways see the interior regions...
>
> If someone can help me...
> Thanks
> Etienne




More information about the R-help mailing list