Title: | Contains an Administrative-Level-1 Map of the World |
---|---|
Description: | Contains an administrative-level-1 map of the world. Administrative-level-1 is the generic term for the largest sub-national subdivision of a country. This package was created for use with the choroplethr package. |
Authors: | Ari Lamstein [aut, cre] |
Maintainer: | Ari Lamstein <[email protected]> |
License: | BSD_3_clause + file LICENSE |
Version: | 1.1.1 |
Built: | 2025-01-20 03:25:29 UTC |
Source: | https://github.com/arilamstein/choroplethradmin1 |
Uses the map ?admin1.map.
admin1_map(country.name)
admin1_map(country.name)
country.name |
The name of the country you want to render. |
admin1.map
, admin1.regions
, get_admin1_regions
, and get_admin1_map
## Not run: admin1_map("japan") admin1_map("canada") ## End(Not run)
## Not run: admin1_map("japan") admin1_map("canada") ## End(Not run)
"Administration Level 1" is the generic term for the largest subnational administrative unit of a country. This unit has different names depending on the country: for example, "state" in the USA and "prefecture" in Japan. In this data.frame the country name is in the column "admin" and the admin1 region name is in the column "region". Rather than working with this object directly, consider using the helper functions listed below.
data(admin1.map)
data(admin1.map)
This map is too large to efficiently render by itself with ggplot2. You should subset it by country before attempting to render. Please see the helper functions.
Taken from http://www.naturalearthdata.com/downloads/10m-cultural-vectors/10m-admin-1-states-provinces/. This is version 3.0.0 of the map and is considered to be beta. The wikipedia page on "Administrative division": http://en.wikipedia.org/wiki/Administrative_division
admin1.regions
, get_admin1_regions
, admin1_map
and get_admin1_map
Names of all (country, region) pairs on the admin1.map data.frame. Here "region" means "Administrative Level 1 Region".
data(admin1.regions)
data(admin1.regions)
admin1.map
, get_admin1_regions
, admin1_map
and get_admin1_map
data(admin1.regions) head(admin1.regions)
data(admin1.regions) head(admin1.regions)
Uses ?admin1.regions
get_admin1_countries()
get_admin1_countries()
get_admin1_countries()
get_admin1_countries()
Uses ?admin1.map. See ?admin1.regions for how countries are spelled in this map.
get_admin1_map(country.name)
get_admin1_map(country.name)
country.name |
The name of the country you want the admin1 map for. |
admin1.map
, admin1.regions
, get_admin1_regions
and admin1_map
## 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)
## 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)
Get all admin1 region names for a given country
get_admin1_regions(country.name)
get_admin1_regions(country.name)
country.name |
The name of the country you want the admin1 region names of. |
admin1.map
, admin1.regions
, admin1_map
and get_admin1_map
get_admin1_regions("japan") get_admin1_regions("canada")
get_admin1_regions("japan") get_admin1_regions("canada")