NLDgem: NLDgem

Description Usage Arguments Examples

View source: R/NLDgem.R

Description

Generates a plot of the Netherlands where each municipality is coloured according to some value, using a continuous scale.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
NLDgem(
  stat = NULL,
  varname = "value",
  getGEM = FALSE,
  title = waiver(),
  subtitle = NULL,
  copyright = NULL,
  mincol = "turquoise1",
  maxcol = "steelblue4",
  legendposition = c(0.05, 0.75),
  theme_add = theme(),
  na.color = "grey",
  legend.breaks = waiver(),
  prov.seperate = NULL
)

Arguments

stat

Dataset containing the names of all Dutch municipalities in the first column and the values of the variables of interest in the second column. If no dataset is provided, municipalities will be coloured randomly.

varname

Name of the variable of interest as shown above the legend.

getGEM

If TRUE the functions returns a vector with all Dutch municipalities.

title, subtitle

Title and subtitle of the plot. NULL if omitted.

copyright

Adds a footnote with copyright sign and the string provided to the plot

mincol, maxcol

Minimum and maximum values of the continuous colour scale

legendposition

Place of the legend. Needs a vector of two numbers between 0 and 1, where (0,0) is topright and (1,1) bottom left.

theme_add

Change the theme of the plot by adding a theme() element.

Examples

1
NLDgem(stat = NULL, varname = 'random')

TIvanDijk/TivD documentation built on April 16, 2021, 7:38 a.m.