Plot a metric of interest using up-to-date COVID-19 data from outbreak.info for location(s) of interest (World Bank region, country, state/province, metropolitan area, county).

plotEpiData(locations, variable)

Arguments

locations

a vector or list of location names

variable

metric to plot

Value

ggplot2 object

Examples

p = plotEpiData("Florida", "confirmed_per_100k")
#> Florida (county)
#> Is this a location of interest? (Y/N): 
#> Expected input is Y or N
#> Florida (county)
#> Is this a location of interest? (Y/N): 
#> Florida (state/province)
#> Is this a location of interest? (Y/N): 
#> Expected input is Y or N
#> Florida (state/province)
#> Is this a location of interest? (Y/N): 
#> [1] "confirmed_per_100k is not a valid API field"
show(p)
#> NULL