This function aims to simplify the code in
c19euxplorer shiny app by selecting
country, date, and indicators in cumulative data to be visualized in Cases and Deaths Tab.
This function would be used in the app.R file.
1 2 3 4 5
A cumulative COVID-19 tibble.
A shiny's input_id of indicator to be visualized.
You can also use this function outside the app. However, make sure to have these variables (with the exact same name) in your data frame in order to make the function works.
A data frame containing the country, date, and the indicator.
1 2 3 4
## Not run: cumulative_indicator(covid_eu_cumulative, input$indicator_select) ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.