read_mngeo | R Documentation |
Downloads the shapefile from a MN Geocommons webpage at https://gisdata.mn.gov/.
read_mngeo(
url =
"https://resources.gisdata.mn.gov/pub/gdrs/data/pub/us_mn_state_pca/env_ej_mpca_census/shp_env_ej_mpca_census.zip",
layer = "ej_mpca_census.shp",
path = getwd(),
folder_name = "mngeo_shapes",
add_date = TRUE
)
path |
Directory to save the ZIP file to, if necessary. |
folder_name |
Name of folder to save downloaded ZIP file to, if necessary. |
add_date |
If TRUE, add today's date to the folder name. Helps to prevent overwriting existing folders. |
Example data source MPCA EJ areas: https://gisdata.mn.gov/dataset/env-ej-mpca-census
library(mpcaej)
## Not run:
ej <- read_mngeo(url = "https://gisdata.mn.gov/dataset/env-ej-mpca-census", layer = "ej_mpca_census.shp")
ej[1, ]
plot(ej[ , 1])
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.