Learn R Programming

fhidata (version 2019.8.27)

norway_map_counties: Maps of Norwegian Counties.

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

norway_map_counties

Arguments

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).

Examples

Run this code
# NOT RUN {
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
# }

Run the code above in your browser using DataLab