NLDprov: NLDprov

Description Usage Arguments Examples

View source: R/NLDprov.R

Description

Generates a plot of the Netherlands where each province 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
NLDprov(
  stat = NULL,
  varname = "value",
  getPROV = FALSE,
  title = "Kaart van Nederland",
  subtitle = NULL,
  copyright = NULL,
  mincol = "turquoise1",
  maxcol = "steelblue4",
  na.color = "grey",
  legendposition = c(0.05, 0.75),
  theme_add = theme(),
  legend.breaks = waiver()
)

Arguments

stat

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

varname

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

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.

getGEM

If TRUE the functions returns a vector with all Dutch provinces

Examples

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

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