download_map_data: Helper function to download the map data form a url

View source: R/highmaps.R

download_map_dataR Documentation

Helper function to download the map data form a url

Description

The urls are listed in https://code.highcharts.com/mapdata/.

Usage

download_map_data(url = "custom/world.js", showinfo = FALSE, quiet = FALSE)

Arguments

url

The map's url.

showinfo

Show the properties of the downloaded map to know how are the keys to add data in hcmap.

quiet

Boolean parameter to turn off download messages (on by default).

See Also

hcmap

Examples

## Not run: 
mpdta <- download_map_data("https://code.highcharts.com/mapdata/countries/us/us-ca-all.js")
mpdta <- download_map_data("https://code.highcharts.com/mapdata/countries/us/us-ca-all.js",
  quiet = TRUE
)
str(mpdta, 1)

## End(Not run)

jbkunst/highcharter documentation built on March 14, 2024, 12:52 a.m.