Download and get Indonesia map from http://biogeo.ucdavis.edu/data/gadm2.8/shp/IDN_adm_shp.zip and convert them to spatial data frame (sf).
1 2 3 4 5 6 7 | map_download(folder = paste0(system.file("data", package = "nusantr"),
"/raw"), filename = "file.zip",
url = "http://biogeo.ucdavis.edu/data/gadm2.8/shp/IDN_adm_shp.zip")
map_convert(folder = paste0(system.file("data", package = "nusantr"),
"/raw"), filename = "file.zip", output = system.file("data/spatial",
package = "nusantr"))
|
folder |
download folder location |
filename |
name of the file (zip) |
url |
url location of the file |
output |
output location |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.