Learn R Programming

choroplethrAdmin1 (version 1.1.0)

get_admin1_map: Get an admin1 map for a country

Description

Uses ?admin1.map. See ?admin1.regions for how countries are spelled in this map.

Usage

get_admin1_map(country.name)

Arguments

country.name
The name of the country you want the admin1 map for.

See Also

admin1.map, admin1.regions, get_admin1_regions and admin1_map

Examples

Run this code
## Not run: 
#  japan.map = get_admin1_map("japan")
# 
#  ggplot(japan.map, aes(long, lat, group=group)) + 
#    geom_polygon() +
#    ggtitle("An admin1 map of Japan")
# ## End(Not run)

Run the code above in your browser using DataLab