-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathREADME.Rmd
38 lines (26 loc) · 1.87 KB
/
README.Rmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
---
output: github_document
---
<!-- README.md is generated from README.Rmd. Please edit that file -->
```{r, include = FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>"
)
```
# ETC5523: Communicating with Data- Assignment 2
## Ratul Wadhwa + 32055587
This is a template that contains materials to create a shiny gadget application
for assessment 2. You will need the following packages installed to
generate the gadget from this template:
```{r, eval = FALSE}
install.packages(c("shiny", "crosstalk", "plotly", "DT", "tidyverse", "here", "scales", "glue"))
```
## How to run the app
This assessment is an interactive web application using the shiny framework, I have tired to reproduce two interactive graphics from the Our World in Data website on the topic of air pollution. The shiny frame work can be found at [Github repository](https://github.com/etc5523-2021/shiny-assessment-ratulwadhwa). The 'Chart' panel contains a plot created with plotly which shows Access to clean fuels for cooking vs. GDP per capita. The 'Table' panel contains an interactive table that give details about Access to clean fuels and technologies for cooking (% of population).
To run the shiny framework, open the **app.R** present in the folder(shiny-assessment-ratuwadhwa) and click on Run App(top right on editor). This will pop a new window where we can explore the interactive graphics and play around the different features of the plot. The features include toggling between a linear axis and a log axis on the chart, hides data points, selects a year on the slider, hovering and highlighting etc. The slider on the **chart tab** can also be used to change selections in the **table tab**, i.e the table updates according to a change from the selection input and slider provided in the chart tab.
## Session Info
Add the session info here.
```{r session-info}
sessioninfo::session_info()
```