Description Usage Arguments Examples
View source: R/se_elex_district.R
This function loads a map of Swedish electoral districts (valdistrikt), ready for plotting with ggplot. The shapefile comes from Valmyndigheten.se
1 | se_elex_district(keep = 0.05, region = "VD")
|
keep |
The amount you want to simplify the shapefile to - defaults to five percent |
region |
What you want to call each region when fortified. This should be an area code or other unique identifier. It defaults to the 8-letter code for each electoral district |
1 | sweden <- se_elex_district() %>% inner_join(life.exp, by = c('id' = 'district_id'))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.