Skip to content

A dashboard that allows users to explore the National Air Pollution Surveillance (NAPS) data published by the Government of Canada between 2001-2020

License

Notifications You must be signed in to change notification settings

ranjitprakash1986/Air_Pollution_Canada

 
 

Repository files navigation

Air Pollution in Canada

Authors: Elena Ganacheva, Ritisha Sharma, Ranjit Sundaramurthi, Kelvin Wong

Project complete in accordance with DSCI 532 for the UBC MDS Program 2022-23 for Group 13

About

For information on the intention, research questions, as well as a more detailed description of the data, please read the proposal instead.

The objective of this dashboard it to enable users to make inferences on the the air pollution trends in Canada between 2001 to 2020. These inferences are conveniently put in perspective by displaying comparisons with world metrics.

Dashboard

The landing page presents the user with options on the left side to select a Province in Canada or/and a specific City in Canada via drop-down menus. The pollutants of interest can be selected via checkboxes. By default, these options are set as entire Canada and all pollutants. This corresponds to the following selections, Select Province: "All" , Select City: Inactive, Select Pollutant: "All".

These selected options dynamically update the Line chart in the display zone 1 on the far right. This plot shows a comparison of average concentration (parts per million) of the prominent pollutants in Canada against the World. The default range of year for this chart is from 2001 to 2020. The user can alter this range by using a slider widget placed beneath this display zone. Furthermore, the user can switch between a Line Chart or Stacked Bar Chart option by clicking the respective buttons at the top of this display zone. Clicking either button fills the display zone 1 with the respective chart. At any moment only one type of chart is displayed in this zone allowing the user to fully immerse in the details.z

The dashboard flaunts another display zone 2 at the center wherein the geospatial information is shown. This information dynamically updates based on the selected options in cohesion with the line or bar chart. This zone is divided into two halves. The upper half displays the density of selected air pollutants in the selected province or city in Canada. The bottom half displays the country-wise average density of the selected pollutants.

The dashboard provides definitions of the pollutants, model assumptions and a summary to provide an overall insight. The attributions and credits are enlisted for user convenience.

Usage

The latest version of the dashboard is deployed on shinyapps.io.

On it, you could experiment with 20 years of National Air Pollution Surveillance (NAPS) data (2001-2020) (aggregated to the month). Feel free to slice it and see if you could find some insights out of it.

Running Locally

The project is implemented in R using Shiny.

The project dependencies are managed by renv. The first time the project is cloned, run:

R -e 'renv::restore()'

Note: if you have updates on the project dependencies, remember to run renv::snapshot() and commit the changed lock file.

The application can be started by:

Rscript app.R

You can then access the application at the displayed URL. By default, it binds to a random local port, but it can be overridden by specifying PORT parameter by using:

PORT=9999 Rscript app.R

Interesting in helping out? Read the CONTRIBUTING.md for more information!

License

air-pollution was created by Elena Ganacheva, Ritisha Sharma, Ranjit Sundaramurthi, and Kelvin Wong.

The National Air Pollution Surveillance (NAPS) data is published by the Government of Canada, under the terms of Open Government License - Canada.

The OECD Air and GHG emissions data is published by the Organisation for Economic Co-operation and Development. Its usage is governed by the OECD Terms and Conditions.

Unless otherwise specified, the materials in this repository are covered under this copyright statement:

Copyright (c) 2023 Elena Ganacheva, Ritisha Sharma, Ranjit Sundaramurthi, Kelvin Wong

The software and associated documentation files are licensed under the MIT License. You may find a copy of the license at LICENSE.

About

A dashboard that allows users to explore the National Air Pollution Surveillance (NAPS) data published by the Government of Canada between 2001-2020

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • HTML 93.1%
  • R 6.9%