## contour plot
plotC(contactmatrix_POLYMOD, contour = TRUE)
## level plots illustrating aggregation of age groups
if (require("gridExtra")) {
grid.arrange(plotC(contactmatrix_POLYMOD, grouping = c(1,2,2,4,4,2)),
plotC(contactmatrix(grouping = c(1,2,2,4,4,2))),
nrow = 1)
}
Run the code above in your browser using DataLab