Description Usage Arguments Value Examples
fmregionkort
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
data |
The data frame for the region data |
id |
The name of the region |
value |
The value for the region 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' |
bornholm |
Should Bornholm be moved north west to be included in the map? |
marker |
Adds marker to the map saying e.g. "Nordjylland: xx" where the value of xx correspond to the value for Nordjylland in the data. Defalut = TRUE |
suffix |
The suffix of the marker text, e.g. "pct." |
output |
The name of the exported .png file. No map exported if the output = NULL (default = NULL) |
ndigits |
The number of digits on the marker text |
background |
Choose the background color |
filetype |
Choose the file type of the output file ("png" (= defalut), "pdf" or ".jpeg") |
farver |
A character vector containing colors. (default = FM colors) |
A map of the Danish regions
1 2 3 4 | ## Not run:
fmregionkort(data = data, id = id, value = value)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.