Nothing
knitr::opts_chunk$set( collapse = TRUE, comment = "#>" )
csmaps
is a package for map visualisation developed by members of CSIDS. The package contains map data for Norway at different levels geographic granularity and layout.
library(csmaps) library(ggplot2) library(data.table) library(magrittr)
A map with the default layout can be made in this way. For more advanced layout and customization, see the relevant documentation vignettes.
pd <- copy(csmaps::nor_municip_map_b2024_default_dt) q <- ggplot() q <- q + geom_polygon( data = pd, aes( x = long, y = lat, group = group ), color="black", fill="white", linewidth = 0.2 ) q <- q + theme_void() q <- q + coord_quickmap() q <- q + labs(title = "Default layout") q pd <- copy(csmaps::nor_county_map_b2024_default_dt) q <- ggplot() q <- q + geom_polygon( data = pd, aes( x = long, y = lat, group = group ), color="black", fill="white", linewidth = 0.4 ) q <- q + theme_void() q <- q + coord_quickmap() q <- q + labs(title = "Default layout") q
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.