This repository contains underlaying code and data sources used to create an interactive dasboard allowing user to explore measures related to the Scottish public health.
The dashboard was built using R Shiny as part of a group project at CodeClan's Data Analysis course.
The content presented within this dashboard derives from two main sources:
- Scotland's Public Health Priorities report produced in 2018 by the Scottish Government. The report outlines 6 Public Health Priorities (PHPs) that the government believe are most important to focus on over the next decade if we are to improve the health of the nation.
- The second main source is the statistics.gov.scot website, which provided the majority of datasets used in the dashboard. Supplementary datasets from other sources have also been used.
The dashboard contains three tabs. One static (Intro) and two for the user to engage with (Overview and Asthma):
-
The Intro tab gives the dashboard user an introduction into the scope of the project.
-
The Overview tab presents visualisations of relevant measures which relate to each of the 6 Public Health Priorities (PHPs). Users may select a certain measure and then learn how this measure relates to one of the PHPs. Visualisations of each of the measures are presented in order to give the user a broad understanding of recent historical progress towards the goals established by each of the PHPs.
- The third Asthma tab is a key tab in our dashboard. It provides tools for a more detailed analysis of Asthma in Scotland. This section of the dashboard allows the user to explore measures such as deaths and rates of hospitalization where asthma was the primary cause of such events. Data is presented from Temporal, Geographic and Demographic perspectives. A small statistical analysis is also included and presented.
An example of used R libraries that were fundamental in order to create this dashboard and content - used to read in and tidy data, carry out statistical analyses, plot figures, process and visualize geo spatial metadata, carry out text mining and establish the dashboard's framework:
tidyverse
, infer
, tmap
, shapefiles
, tm
, shiny
Authors: Lauren D, James Hunter, Lenka Rozborilova, Doug Sloan