# NOT RUN {
if (require(outbreaks)) {
## example using MERS outbreak in Korea, 2014
head(mers_korea_2015[[1]])
head(mers_korea_2015[[2]])
x <- make_epicontacts(linelist = mers_korea_2015[[1]],
contacts = mers_korea_2015[[2]], directed=TRUE)
# }
# NOT RUN {
plot(x)
plot(x, "place_infect")
plot(x, "loc_hosp", legend_max = 20, annot = TRUE)
plot(x, "place_infect", node_shape = "sex",
shapes = c(M = "male", F = "female"))
plot(x, 4)
plot(x, 4, method = "graph3D")
# }
# NOT RUN {
}
# }
Run the code above in your browser using DataLab