This repository contains an R package for the HealthDataScotland shiny application. This shiny application downloads, processes and presents demographic and bed capacity data related to GP practices and hospitals across Scotland, respectively.
Installation
You can install HealthDataScotland from GitHub with:
devtools::install_github("jsleight1/HealthDataScotland")Examples
R6 objects
gp_unit <- example_gp_unit()
gp_unit$metadata()
gp_unit$plot(type = "population_pyramid")
hospital_unit <- example_hospital_unit()
hospital_unit$metadata()
hospital_unit$plot(type = "specialty_line")
map_unit <- example_map_unit()
map_unit$plot(type = "interactive_map")Local shiny usage
Sys.setenv("R_CONFIG_ACTIVE" = "development")
save_processed_data()
health_data_scotland()Please refer to the documentation for further details regarding the design and usage of this package.
Disclaimer
This R package is licensed using a GNU General Public License and contains data from a variety of sources licensed under the Open Government License (OGL). This application is primarily a hobby project, therefore the author accepts no liability and provides no guarantees related to the functionality of the application and accuracy of the data. The original published data sets should always be consulted when using this application.