Learn R Programming

GADMTools (version 3.9-1)

gadm_loadStripped: Load one GADM stripped shapefile

Description

Load one GADM stripped shapefiles from a local path for use with ggplot2.

Usage

gadm_loadStripped(name, level, basefile='./')

Arguments

name

Character vector of a named region. An ISO-3166-1 code or a custom name. You don't have to specify the suffix (admX) nor the file extension (.rds).

level

Integer the level of the administrative boundaries (0 is the country, higher values equal finer divisions)

basefile

Character vector the path of the directory where shapefiles are stored. Default is "./"

Value

Object gadm_sp with stripped properties == TRUE

ISO-3166-1

See : https://en.wikipedia.org/wiki/ISO_3166-1_alpha-3

"ABW","AFG","AGO","AIA","ALA","ALB","AND","ANT","ARE","ARG", "ARM","ASM","ATA","ATF","ATG","AUS","AUT","AZE","BDI","BEL", "BEN","BFA","BGD","BGR","BHR","BHS","BIH","BLM","BLR","BLZ", "BMU","BOL","BRA","BRB","BRN","BTN","BVT","BWA","CAF","CAN", "CCK","CHE","CHL","CHN","CIV","CMR","COD","COG","COK","COL", "COM","CPV","CRI","CUB","CXR","CYM","CYP","CZE","DEU","DJI", "DMA","DNK","DOM","DZA","ECU","EGY","ERI","ESH","ESP","EST", "ETH","FIN","FJI","FLK","FRA","FRO","FSM","GAB","GBR","GEO", "GGY","GHA","GIB","GIN","GLP","GMB","GNB","GNQ","GRC","GRD", "GRL","GTM","GUF","GUM","GUY","HKG","HMD","HND","HRV","HTI", "HUN","IDN","IMN","IND","IOT","IRL","IRN","IRQ","ISL","ISR", "ITA","JAM","JEY","JOR","JPN","KAZ","KEN","KGZ","KHM","KIR", "KNA","KOR","KWT","LAO","LBN","LBR","LBY","LCA","LIE","LKA", "LSO","LTU","LUX","LVA","MAC","MAF","MAR","MCO","MDA","MDG", "MDV","MEX","MHL","MKD","MLI","MLT","MMR","MNE","MNG","MNP", "MOZ","MRT","MSR","MTQ","MUS","MWI","MYS","MYT","NAM","NCL", "NER","NFK","NGA","NIC","NIU","NLD","NOR","NPL","NRU","NZL", "OMN","PAK","PAN","PCN","PER","PHL","PLW","PNG","POL","PRI", "PRK","PRT","PRY","PSE","PYF","QAT","REU","ROU","RUS","RWA", "SAU","SDN","SEN","SGP","SGS","SHN","SJM","SLB","SLE","SLV", "SMR","SOM","SPM","SRB","STP","SUR","SVK","SVN","SWE","SWZ", "SYC","SYR","TCA","TCD","TGO","THA","TJK","TKL","TKM","TLS", "TON","TTO","TUN","TUR","TUV","TWN","TZA","UGA","UKR","UMI", "URY","USA","UZB","VAT","VCT","VEN","VGB","VIR","VNM","VUT", "WLF","WSM","YEM","ZAF","ZMB","ZWE"

References

----

See Also

----

Examples

Run this code
# NOT RUN {
# library(GADMTools)
# library(sp)
# BE <- gadm_loadStripped('BEL', level=2)
# plotmap(BE)
# }

Run the code above in your browser using DataLab