hefpi
is a web application for the visual exploration of the World
Bank’s Health Equity and Financial Protection Indicators. It is
currently under active development.
You can install hefpi from github by running the following:
devtools::install_github('databrew/hefpi')
To work on developing this package, you’ll likely want to focus on the following files:
R/app_server.R
: The server-side codeR/app_ui.R
: The user interfacedev/run_dev.R
: The code you’ll use to run the app locally after making changes
To deploy on a shiny server, simply place an app.R
file in a folder as
one normally would do, and populate that file with the following lines:
library(hefpi)
run_app()
In order to build this package and run the application correctly, one should:
- Clone this repository from the command line:
git clone https://github.com/databrew/hefpi
. - Install the hefpi package in R:
devtools::install_github('databrew/hefpi')
- Run
Rscript dev/run_dev.R
from the command line or in Rstudio.
The HEFPI dashboard is structured as a R package (created with golem https://cran.r-project.org/web/packages/golem/vignettes/a_start.html)
The primary files:
-
dev/run_dev.R
: The code you'll use to run the app locally after making changes -
inst/app/www/*
: logos, fonts, and thecustom.css
file that controls the CSS for the app. -
misc/guide.md
: AWS admin guide for setting up shiny app. -
data-raw/from_other/*
-
data-raw/from_wb/*
-
data-raw/from_website/*
-
data-raw/raw_data.R
-
data/*
-
R/app_config.R
: Used to read insdie golem config fileinst/golem-config.yml
-
note: the "By urban-rural" tab is a placeholder with no charts (to be added later).
-
R/mod_dat.R
:- Data availability by country
- Data availability by indicator
-
R/mod_trends.R
- Trends national mean
- Trends subnational mean
- Trends concentration index
- Trends quintiles
-
R/mod_recent.R
- Most recent value national mean
- Most recent value concentration index
-
R/mod_recent_sub.R
- Most recent value subnational mean
-
R/mod_dots.R
- Quintiles by country
- Quintiles by indicator
-
R/plot_theme_new.R
: plot theme function