Learn R Programming

SPOT (version 2.1.10)

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.

See Also

plotRegionByName.

Examples

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

Run the code above in your browser using DataLab