knitr::opts_chunk$set( collapse = TRUE, comment = "#>" )
library(southeastcovid)
The southeastcovid package extends the coronavirus package with shiny app. Built on top of the shiny, a shiny application is an interactive dashboard made to explore the coronavirus development, specifically in South East Asia. The southeastcovid
package aims to let users understand the coronavirus trend in South East Asia countries with the interactive app.
southeast
creates a tibble object, which contain the pre-loaded dataset that used in the shiny application. It can be checked with ?southeastcovid::southeast to understand the variable included.
library(dplyr) library(lubridate) covid_cases <- southeastcovid::southeast %>% select(date, country, type, cases) head(covid_cases)
launch_app()
is the function that launch the shiny application. It takes the working directory and find the \inst\app
folder to which contain the app.R
library(southeastcovid) launch_app()
An application to explore the development of coronavirus in South East Asia countries. There are two graph in this application. In the continent tab, you can see the graph for daily cases in all South East Asia In the countries tab, there are graph for every representative country in South East Asia.
Both graph represented by the day, countries, type of cases, and number of each representative cases.
In this tab, there is a line graph showing the progress of cases in all South East Asia countries. The x-axis shows the date, while the y-axis shows the number of cases. Each line represents one country. The features available in the sidebar are :
At the bottom there is Hover Data and Click Data. Hover data will show the date and number of cases dynamically when the cursor hover the line graph. Meanwhile, Click Data will show the date data and the number of cases at a point when the line graph is clicked.
This section useful when you want to compare the number of one individual cases in multiple country.
In this tab, there is a line graph showing the progress of cases in one country. On the x-axis it shows the date, while on the y-axis it shows the number of cases. Each line represents the type of case (confirmed, death, and recovered). The features available on the sidebar are:
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.