knitr::opts_chunk$set( collapse = TRUE, comment = "#>" )
If you want to install the dev version, run usethis::edit_r_profile()
to edit your .Rprofile
. Then write in:
options(repos=structure(c( FHI="https://folkehelseinstituttet.github.io/drat/", CRAN="https://cran.rstudio.com" )))
Save the file and restart R. This will allow you to install fhidata
from the FHI registry instead of CRAN.
We conveniently package population data taken from Statistics Norway. This data is licensed under the Norwegian Licence for Open Government Data (NLOD) 2.0.
This dataset contains national/county/municipality level population data for every age (0 to 105 years old) from 2006. The counties and municipalities are updated for the current redistricting.
print(fhidata::norway_population_current)
This dataset contains national/county/municipality level population data for every age (0 to 105 years old) from 2006. The counties and municipalities are not updated for the current redistricting.
print(fhidata::norway_population_original)
We conveniently package vaccine coverage data taken from "Kommunehelsa statistikkbank". This data was last updated on 2019-04-09. This dataset contains national/county/municipality level (5 year average) vaccination coverage rates for 16 year olds for the childhood vaccination program (diphtheria, hpv, measles, mumps, poliomyelitis, pertussis, rubella, tetanus). Municipalities are updated for the 2019 redistricting.
print(fhidata::norway_childhood_vax)
We provide location names and location codes in multiple formats.
This dataset contains national/county/municipality codes and names. The counties and municipalities are updated for the current redistricting.
print(fhidata::norway_locations_long_current)
This dataset contains national/county/municipality codes and names. The counties and municipalities are not updated for the current redistricting.
print(fhidata::norway_locations_long_original)
This dataset contains county codes/names and municipality codes/names for each municipality. The counties and municipalities are updated for the current redistricting.
print(fhidata::norway_locations_current)
This dataset contains county codes/names and municipality codes/names for each municipality. The counties and municipalities are not updated for the current redistricting.
print(fhidata::norway_locations_original)
This dataset is used to transfer "original" municipality level datasets to the current redistricting.
print(fhidata::norway_municip_merging)
We provide some datasets for easy Norwegian to English translations.
print(fhidata::countries_nb_to_en)
We conveniently package map datasets for Norway (taken from Geonorge) that can be used in ggplot2 without needing any geo libraries. This data is licensed under Creative Commons 0.
library(ggplot2) library(data.table) pd <- fhidata::norway_map_counties q <- ggplot() q <- q + geom_polygon(data = pd, aes( x = long, y = lat, group = group, fill=location_code), color="black") q <- q + theme_void() q <- q + coord_quickmap() q
library(ggplot2) library(data.table) pd <- fhidata::norway_map_municips q <- ggplot() q <- q + geom_polygon(data = pd, aes( x = long, y = lat, group = group), color="black", fill="white") q <- q + theme_void() q <- q + coord_quickmap() 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.