The goal of satellitereport is to facilitate cooperation with satellitereport.com. Package documentation: package.satellitereport.com
You can install the satellitereport from GitHub with:
# install.packages("devtools")
devtools::install_github("antaldaniel/satellitereport")
This is how you create a choropleth map.
library(satellitereport)
require(eurostat)
require(dplyr)
require(ggplot2)
all_geo_codes <- unique(eurostat::regional_changes_2016$code16)
all_geo_codes <- all_geo_codes [!is.na(all_geo_codes)]
test_intervals <- data.frame (
geo = all_geo_codes,
values = rnorm(length(all_geo_codes), mean = 50, sd = 15),
row.names = NULL
)
create_choropleth ( dat = test_intervals,
geo_var = 'geo', values_var='values',
na_color = 'grey93', unit_text = 'unit',
n=5, style ='kmeans') +
ggplot2::labs( title = "Random Numbers Over NUTS-2 Regions",
subtitle = "This is a demonstration of the function",
caption = "This is the caption text")
Please note that the satellitereport
package is released with a
Contributor Code of Conduct. By contributing to
this project, you agree to abide by its terms.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.