Learn R Programming

SPOT (version 2.4.2)

plotRegion: plotRegion

Description

Plot confirmed cases and fatalities (cumulative) for one country/region by index.

Usage

plotRegion(regionList, countryIndex = 1)

Arguments

regionList

A list containing a representation of the data.

countryIndex

num Index

Value

A plot

Details

Data are taken from the regionTrain and regionPopulation data sets that were combined using the preprocessInputData function. regionTrain and regionPopulation are stored in the babsim.data package.

See Also

plotRegionByName.

Examples

Run this code
# NOT RUN {
# regionList <- preprocessInputData(regionTrain, regionPopulation)
# p <- plotRegion(regionList = regionList, countryIndex = 1)

# }

Run the code above in your browser using DataLab