View source: R/shiny_covid19_spread.R
shiny_covid19_spread | R Documentation |
A shiny based web app that allows users to customize the
plot_covid19_spread
display. The display has been
inpired by the displays created by John Burn-Murdoch for the Financial
Times. You can use it to customize your plot_covid19_spread()
display as it allows copying the plot generating code to the clipboard,
thanks to the fine rclipboard package.
shiny_covid19_spread(plot_options = list(), ...)
plot_options |
A named list containing parameters to
initialize the plot in the shiny app. All parameters of
|
... |
Parameters that will be parsed on to |
Uses data from the Johns Hopkins University CSSE team on the spread of the SARS-CoV-2 virus and the Covid-19 pandemic (https://github.com/CSSEGISandData/COVID-19), from the ACAPS governmental measures database (https://www.acaps.org/covid19-government-measures-dataset) and from the World Bank (https://data.worldbank.org). See the documentation of the separate download functions of the package for more detail.
## Not run:
shiny_covid19_spread()
df <- download_merged_data(cached = TRUE)
shiny_covid19_spread(
plot_options = list(data = df, highlight = c("USA", "ESP", "ITA"))
)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.