10.5281/zenodo.1745350
https://zenodo.org/records/1745350
oai:zenodo.org:1745350
Thibaut Jombart
Thibaut Jombart
Imperial College London
Zhian N. Kamvar
Zhian N. Kamvar
Imperial College London
Jun Cai
Jun Cai
Tsinghua University
Sarah Chisholm
Sarah Chisholm
Public Health England
Rich FitzJohn
Rich FitzJohn
Jakob Schumacher
Jakob Schumacher
Sangeeta Bhatia
Sangeeta Bhatia
Imperial College London
reconhub/incidence: Incidence version 1.5.2
Zenodo
2018
2018-11-30
https://github.com/reconhub/incidence/tree/1.5.2
10.5281/zenodo.1404718
1.5.2
Other (Open)
This release of incidence includes a couple of bug fixes and also updates the incidence demo. This is the first CRAN version since 1.5.0. For incidence > 1.5.0, the way the object is constructed and plotted differs. Mainly, the ordering of the groups in the epicurve will match the ordering of the groups in the incidence object (previously, they were ordered alphabetically):
library("incidence")
set.seed(2018-11-01)
dat <- rpois(200, 10)
me <- c("Mordor", "Shire", "Isengard", "Eisengard")
grp <- sample(me,
200,
replace = TRUE,
prob = c(1, 1, 1, 0.05))
i <- incidence(dat, group = grp)
plot(i, show_cases = TRUE)
i <- incidence(dat, group = factor(grp, me))
plot(i, show_cases = TRUE)
group_names(i)
#> [1] "Mordor" "Shire" "Isengard" "Eisengard"
<sup>Created on 2018-11-30 by the [reprex package](https://reprex.tidyverse.org) (v0.2.1)</sup>