map(“usa”) by default displays a map without Alaska and Hawaii. map(“world”) has Antartica by default. Is there any way to say “include alaska”, “exclude antartica” etc?
map(usa) by default displays a map without Alaska and Hawaii. map(world) has Antartica by
Share
Quick answer:
Longer answer:
The maps data in “world” is referenced by region names and these are generally character data in “continent:country” or “continent:subregion” format. To get those names which are in an external database, you need to first use maps(“world” , …) with parameters that return only the names and not all of hte other coordinates. If you want to find all the “Antarctica” containing entries you need to use grep() to identify their position in the returned names vector.