norway_map_counties: Maps of Norwegian Counties.

Description Usage Format Source Examples

Description

We conveniently package map datasets for Norwegian counties (taken from Geonorge) that can be used in ggplot2 without needing any geo libraries. This data is licensed under Creative Commons 0.

Usage

1

Format

long

Location code.

lat

Location name.

order

The order that this line should be plotted in.

hole

Geodata. Not used.

piece

Geodata. Not used.

group

Needs to be used as 'group' aesthetic in ggplot2.

id

Non-informative id code.

location_code

Location code (county code).

Source

https://kartkatalog.geonorge.no/metadata/uuid/cb02ab77-d3e6-4500-8a92-ea67367e7734

Examples

1
2
3
4
5
6
library(ggplot2)
q <- ggplot(mapping = aes(x = long, y = lat, group = group, fill = location_code))
q <- q + geom_polygon(data = fhidata::norway_map_counties, color = "black")
q <- q + theme_void()
q <- q + coord_quickmap()
q

Example output

PACKAGE: fhidata
Version: 2019.08.27 at 19:10
Developed by Richard White, Norwegian Institute of Public Health

fhidata documentation built on Aug. 29, 2019, 5:09 p.m.