RMemmel
2020-10-15
The presentation must satisfy the following
The purpose of the application is to make sense of the transmission vectors of COVID-19 in various Toronto neighborhoods. The data set is compiled from the latest available public health data.
The app allows users to input a possible transmission vector or “Source of Infection” to be selected from a dynamically populated drop-down list. The user may also specify a date reange to narrow down results. The app then displays the results broken down by Toronto neighbouhoods.
``{r}
library(ggplot2) # these are the required libraries:
library(knitr)
library(dplyr)
library(shiny)
library(plotly)
```
``{r}
figure2 <- plot_ly(hoods, x = ~Neighbourhood.Name,
y = ~frequency, type = 'bar', color = I("green"))
figure2 <- figure2 %>% layout(title = paste
(input$source,"Travel related COVID-19 cases in
Toronto Neighbourhoods (2020)"),
xaxis = list(title = "Neighbourhood", tickangle = -45),
yaxis = list(title = "Total"),
margin = list(b = 100),
barmode = 'group')
```