| get_india_admin | R Documentation |
Returns Indian administrative boundaries as an sf object. Useful as the
polygons argument to extract_panel().
get_india_admin(
level = c("country", "state", "district"),
source = c("gadm", "bhuvan")
)
level |
One of |
source |
One of |
State boundaries use a bundled LGD (Local Government Directory) dataset derived from the Survey of India.
For custom boundaries, load your own file with sf::read_sf() and pass it
directly to extract_panel().
An sf object.
# Bundled state boundaries (no download)
states <- get_india_admin("state")
head(states)
# Downloads from GADM or Bhuvan
districts <- get_india_admin("district")
districts <- get_india_admin("district", source = "bhuvan")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.