README.md

StatusCoverage Status

Shinymap

R-package to be used to produce maps on the helseatlas.no web page.

A working document on the process of going from IA to RShiny can be found here (read only).

How to install the package

devtools::install_github("Helseatlas/shinymap")

You have the run the following command first if you are behind Helse Nord proxy:

httr::set_config(httr::use_proxy(url="http://www-proxy.helsenord.no", port=8080))

How to use the package

Input data

The input to the shiny app is a data frame containing the following columns:

area
level1
(level2) # optional
(level3) # optional
rate
numerater
name_numerater
denominator
name_denominator

If you want to test the package you can use a dataset shipped with the package, namely shinymaps::kols.

Launch locally

Run the command

shinymap::launch_application(dataset = <dataset>)

Submit to shinyapps.io

Run the command

shinymap::launch_application(dataset = <r data frame>, publish_app = TRUE, name = <appName>, shiny_account = <publishing account>)

Make sure that the version of shinymap installed and active in your Rsession is installed directly from github, since it also has to be installed on shinyapps.io. Also remember to connect to your shinyapps.io profile.

Run a local copy of the package

git clone [email protected]:helseatlas/shinymap
healthatlas_data <- shinymap::kols # or another dataset to use
language <- "no" # or "en"
webpage_title <- "Helseatlas kols 2013-2015"
shiny::runApp('inst/app')

Contribute

git clone [email protected]:<username>/shinymap
cd shinymap
git checkout -b super-duper-idea
git push -u origin super-duper-idea
git add .
git commit -m 'My super duper idea'
git push


Helseatlas/shinymap documentation built on March 17, 2019, 9:25 p.m.