Logo Lanfrica

afrimapr/afrihealthsites

Domaine:

healthcaregeospatial

Type de record:

software
Créateur:
afr
Hôte:
access to geographic locations of african health sites from different sources # afrihealthsites access to geographic locations of african health facilities from different sources. See web interface and paper demonstrating these components. Part of the afrimapr project. In early development, will change, contact Andy South with questions. ### Install afrihealthsites Install the development version from GitHub : # install.packages("remotes") # if not already installed remotes::install_github("afrimapr/afrihealthsites") ### First Usage ``` r library(afrihealthsites) library(sf) ## WHO database # with interactive map sfken <- afrihealthsites("kenya", datasource='who', plot='mapview') # static map sfeth <- afrihealthsites("ethiopia", datasource='who', plot='sf') ## healthsites.io # pre-downloaded data # with interactive map sfmali <- afrihealthsites("mali", datasource='healthsites', plot='mapview') ## compare locations from different sources compare_hs_sources('togo') # these are defaults compare_hs_sources('togo', datasources=c('who', 'healthsites'), plot='mapview') # run a shiny application allowing you to select any country runviewer() # live data - requires a free API key from healthsites.io library(rhealthsites) #rhealthsites::hs_set_api_key('[requires a free API key from healthsites.io]') # with interactive map sfmali <- afrihealthsites("mali", datasource='healthsites_live', plot='mapview') ``` ### Find National Master Facility Lists ``` r # all countries list of available MFLs df <- national_list_avail() # availability for a single country national_list_avail("Togo") # url for data (if available) national_list_url("Ghana") # example of reading in data direct from a url and mapping # will only work for countries where "machine_readable" is TRUE dfgha <- read.csv(national_list_url("Ghana")) sfgha <- sf::st_as_sf(dfgha, coords=c("Longitude","Latitude"), crs=4326, na.fail=FALSE) afrihealthsites('gha',datasource=sfgha, type_column='Type') ``` ### specifying countries The following can be used : …