Skip to content

PHP2560-Statistical-Programming-R/shiny-app-environment-and-health

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

85 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

App Description

Overview

The Environment and Health App is to help users analyze and visualize environmental and health data. It can be used to do horizontal analyses among different countries, states and cities. You can also use it to do time series analyses. Besides, you can get summary statistics and evaluate your health status based on personal characteristics.

Audience

Environmental engineers and people who are interested in analyzing environmental data and concerned with the relationship between environment and health status.

Dataset Overview

Air Quality Index Dataset

  • Annual AQI dataset contains annual AQI information from 2000 to 2017 by Core Based Statistical Area (CBSA).

  • The U.S. pollution dataset contains four major pollutants (Nitrogen Dioxide, Sulphur Dioxide, Carbon Monoxide and Ozone) AQI data for every day from 2000-2016. All the data is scraped from the database of U.S. EPA

  • AirQualityTracking dataset contains different air quality values of different state. The dataset was from Center for Disease Control and the air quality was a combination of ozone and PM2.5.

Global temperature datasets

Notes: There are some missing values in the following datasets, which leads to the incompleteness of the temperature map in some year.

  • Global Temperature contains global land average temperature from 1750-2015.

  • Global Land Temperature by Country dataset contains global land average temperature from 11/1743-09/2015.

  • Global Land Temperature by State dataset contains global land average temperature from 11/1743-09/2015.

Guide to App

Air Quality Index

AQI Plot

Analysis selection - Boxplot of AQI:

This boxplot can show you how AQI distributed from 2000-2017. You can use the notches on the boxplots to analyze whether there is strong evidence (95% confidence) that their medians differ, whether the median changed much during specific time period and whether the distribution approximate to normal distribution or it was skewed.

Analysis selection - Health Concern by AQI:

You can use the Health Concern Plot analyze the trend of percentage of each health concern level during a specific time period and compare the percentage among CBSAs.

Plot Selection:

For users who want to do comparison during a relatively long time period, the better choice is to select line plot and analyze the trend.

For users who want to do comparison only in one or a few years, select bar plot here. For example, if users want to compare the percentage of health concern levels between diffrent CBSAs only in a specific year (2008), choose bar plot and the graph will display properly.

Pollutant AQI Trend

You can use these time series plots to analyze the trend of AQI by pollutant.

Cluster

  • Data

The data comes from annual aqi by cbsa. For the pollution part, the variables are percentage of a certain pollutants because some of the original data are zero. For the health part, the input variable is the number of different situations of days(Good, unhealthy, etc). The cluster count is the number of clusters you want to divide.

Map

Air Quality Map

  • Input Selection

The year is the certain year you want to specify to get to know about the air quality of the United States. The color is the kind of color you want to display in the state map.

  • Note

The data is from the center of disease control. The air quality is a combination of the ozone and PM2.5.

Temperature Map

Use the two datasets analyze temperature by countries or states.

When the default value for temperature variation is false, the map will show the temperature in specific year according to the Year input.

When you choose true for temperature variation, you can then analyze how temperature changed during the time period you select through the Year for Temperature Variation slider.

Calculator

  • Input Selection

The City has certain information about the air quality of that city you choose. Smoking is whether you smoke or not, if you smoke then select "yes". Exercise is whether you exercise or not, if you do, select "yes". Gene is whether your family has certain kind of gene that may cause disease, if they do, select "yes".

  • Usage

This part mainly calculate the summary statistic of the city you choose. For the health part, it gives a brief result of your health condition.

Temperature Trend

You can choose global temperature or global land temperature by country to analyze the overall global temperature trend or temperature trend by country.

You can analyze either yearly average temperature or monthly average temperature trend.

Break down of work

Annie Yang:

  • AQI Plot - Boxplot of AQI and Health Concern by AQI

  • Pollutant AQI Trend

  • Temperature map

  • Temperature Trend

Yiquan Xu:

  • Cluster

  • Air Quality map

  • Calculator

About

shiny-app-environment-and-health created by GitHub Classroom

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published