Hello R users: I would like to produce a world map with countries colored according to whether they fall into one of 7 eco-climatic zones. For simplicity, each country is allocated to exactly 1 eco-climatic zone. For this purpose I have looked at the map and mapdata packages, which contain world maps composed of polygons (1 for each country, it seems). Each of the polygons can be referred to by a region name in the map package.
I am thinking, I would do something like map(region=c('Germany', 'Switzerland',...), fill=TRUE, col='blue') for each of the 7 eco-climatic zones. My question is, what are the names used in the world map dataset for each country and how can I get them? Perhaps there's also a smarter way to produce this map, in which case, your advise is greatly appreciated as well. Lastly, some countries (mostly large ones such as USA, Russia, Canada, China) fall into multiple eco-climatic zones. Assume I could get geographical coordinates for polygons describing the sub-country portion falling into a single eco-climatic zone, is there a way to improve the above map to show portions of countries belonging to a specific eco-climatic zone? Thanks! Tanja ______________________________________________ R-help@stat.math.ethz.ch 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.