generate_map: Generate quick map

Description Usage Arguments Details Value Examples

Description

Generate given NUTS level map with data from given variable

Usage

1
2
generate_map(varId, year, unitLevel = 2, unitParentId = NULL,
  aggregateId = NULL, lang = c("pl", "en"), ...)

Arguments

varId

A single variable Id. Use search_variables or get_variables to find variable id code.

year

A single year from 2010-2018 range.

unitLevel

A map and data NUTS level - number from 0 to 6. Use get_levels to find more info.

unitParentId

A 12 character NUTS id code of interested unit. Use search_units or get_units to find unit id code.

aggregateId

An aggregate id. Use get_aggregates for more info.

lang

A language of returned data, "pl" (default), "en"

...

Other arguments passed on to GET. For example a proxy parameters, see details.

Details

Generate quickly map for given NUTS level, using BDL data. Default level is 2.

Maps available for year: 2010-2018

Provide unit parent id to narrow the map for specific regions.

Generating lower (leves 5 and 6) level maps can take some time.

To use a proxy to connect, a use_proxy can be passed to GET. For example get_request(id, filters, config = httr::use_proxy(url, port, username, password)).

Value

A tmap map.

Examples

1
 bdl_map <- generate_map(varId = "60559", year = "2017")

KaniaKrzysztof/bdl documentation built on June 28, 2019, 8:09 p.m.