ruralDK: Creates dynamic chloropleth maps of danish rural regions

Description Usage Arguments Value Examples

Description

Creates dynamic chloropleth maps of danish rural regions

Usage

1
2
3
ruralDK(value = NULL, id = NULL, subplot = NULL, data = NULL,
  map = FALSE, legend = FALSE, pal = "YlOrRd", logcol = F,
  legendtitle = NULL)

Arguments

value

is the name of the column in the data where the values are stored

id

is the name of the column in the data where the ids are stored

subplot

is a string of ids you want to keep - excludes all others

data

is the data frame that contains the data to map

map

is a TRUE / FALSE of wether a real map should be plotted underneath

legend

is a TRUE / FALSE of wether the legend should be plotted

pal

is the color palette for the chloropleth

logcol

is a TRUE / FALSE of wether the chloropleth colors should be drawn against the log value

legendtitle

provides an alternative title for the legend

Value

An interactive Leaflet map

Examples

1
2
3
4
5
library(leafletDK)
aus08 <- readr::read_csv2("http://api.statbank.dk/v1/data/AUS08/CSV?OMR%C3%85DE=01%2C02%2C03%2C04%2C05%2C06%2C07%2C08%2C09%2C10%2C11&SAESONFAK=9")
aus08$OMRÅDE <- stringr::str_replace_all(aus08$OMRÅDE, "Landsdel ", "")

ruralDK("INDHOLD", "OMRÅDE", data = aus08, pal = "Greens")

56north/leafletDK documentation built on May 5, 2019, 11:27 a.m.