Skip to contents

We package the map datasets for Oslo wards (bydeler), taken from Oslo municipality, as simple features objects. They suit the sf package and ggplot2::geom_sf(). This data is licensed under Creative Commons BY 4.0 (CC BY 4.0).

Usage

oslo_ward_map_b2020_default_sf

oslo_ward_map_b2024_default_sf

Format

Each dataset is an sf data frame with one row per ward:

geometry

MULTIPOLYGON geometry column. Geographic coordinates on WGS84 ("+proj=longlat +datum=WGS84 +no_defs"), which sf treats as equal to EPSG:4326. The objects carry no EPSG authority code, so sf::st_crs(x)$epsg is NA.

location_code

Ward code (e.g. "wardoslo_nor030101").

An object of class sf (inherits from data.frame) with 15 rows and 2 columns.

Source

Oslo kommune. License: CC BY 4.0.

Details

Borders provided for 2024, 2020, in the default layout only. Both hold the 15 wards wardoslo_nor030101 to wardoslo_nor030115, and the two objects are identical.

See also

vignette("sf_interactive", package = "csmaps") shows the sf-plus- leaflet workflow, but on the county sf dataset. No vignette uses an Oslo ward sf dataset.

Other Oslo ward maps: oslo_ward_map_bxxxx_default_dt

Other sf maps: nor_county_map_bxxxx_default_sf, nor_municip_map_bxxxx_default_sf

Examples

library(ggplot2)
q <- ggplot(csmaps::oslo_ward_map_b2024_default_sf)
q <- q + geom_sf(fill = "white", color = "black", linewidth = 0.4)
q <- q + theme_void()
q