# 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, node_color = "place_infect")
plot(x, node_color = "loc_hosp", legend_max=20, annot=TRUE)
plot(x, "place_infect", node_shape = "sex",
shapes = c(M = "male", F = "female"))
plot(x, "sex", node_shape = "sex", shapes = c(F = "female", M = "male"),
edge_label = "exposure", edge_color = "exposure")
# }
# NOT RUN {
}
# }
Run the code above in your browser using DataLab