README.md

satellitereport

Project Status: WIP – Initial development is in progress, but there
has not yet been a stable, usable release suitable for the
public.licenseLast-changedate Travis build
status

The goal of satellitereport is to facilitate cooperation with satellitereport.com. Package documentation: package.satellitereport.com

Installation

You can install the satellitereport from GitHub with:

# install.packages("devtools")
devtools::install_github("antaldaniel/satellitereport")

Example

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")

Code of Conduct

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.



antaldaniel/satellitereport documentation built on Aug. 7, 2020, 8:37 a.m.