ex1InfectedDf | R Documentation |
Data used in example 1 and for testing A synthetic data set of COVID-19 cases with 99 obs. of 8 variables:
ex1InfectedDf
A data frame with 99 obs. of 8 variables:
int 1 2 3 4 5 6 7 8 9 10 ...
Date, format: '2020-03-03' '2020-03-04' '2020-03-05' '2020-03-06' ...
num 6 0 1 3 3 1 5 1 6 104 ...
num 6 6 7 10 13 14 19 20 26 130 ...
num 6 6 7 10 13 14 19 20 26 130 ...
num 1 1 1 1 2 2 3 3 4 18 ...
num 0 0 0 0 0 0 0 0 0 1 ...
num 0 0 0 0 0 0 0 0 0 2 ...
x <- ex1InfectedDf # first look str(x) # plot x$InfCum <- cumsum(x$Infected) plot(x$Day, x$InfCum, type = "l", log = "y", ylim = c(1, 500)) lines(x$Day, x$Infected + 1e-6)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.