fmkommunekort: fmkommunekort

Description Usage Arguments Value Examples

View source: R/fmkommunekort.R

Description

fmkommunekort

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
fmkommunekort(
  data = NULL,
  id = NULL,
  value = NULL,
  scale = "numeric",
  bins = 5,
  legend = FALSE,
  legendtitle = NULL,
  farver = NULL,
  bornholm = T,
  output = NULL,
  background = rgb(249/255, 248/255, 224/255),
  filetype = ".png"
)

Arguments

data

The data frame for the municipality data

id

The name of the municipality

value

The value for the municipality which shall correspond to the color on the map

scale

The type of the scale for the colors. Can be either 'factor', 'numeric' (default), 'bin.num' or 'bin.cat'

bins

The number of bins if 'bin' specified under 'scale'. Default = 5.

legend

Choose whether the map should includ a legend (default = FALSE)

legendtitle

Choose the name above the legendtitle. Default is the same name as the column specified under 'legend'

farver

A character vector containing colors. (default = FM colors)

bornholm

Should Bornholm be moved north west to be included in the map?

output

The name of the exported .png file. No map exported if the output = NULL (default = NULL)

background

Choose the background color

filetype

Choose the file type of the output file ("png" (= defalut), "pdf" or ".jpeg")

Value

A map of the Danish municipalities.

Examples

1
2
3
4
## Not run: 
fmkommunekort(data = data, id = id, value = value)

## End(Not run)

August-Emil/fmkort documentation built on June 7, 2020, 7:16 a.m.