Graphics Reference
In-Depth Information
Figure 13-34. Left: New Zealand data taken from world map; right: data from nz map
See Also
See the mapdata package for more map data sets. It includes maps of China and Japan, as well
as a high-resolution world map, worldHires .
See the map() function, for quickly generating maps.
See ?mapproject for a list of available map projections.
Creating a Choropleth Map
Problem
You want to create a map with regions that are colored according to variable values.
Solution
Merge the value data with the map data, then map a variable to fill :
Search WWH ::




Custom Search