knitr::opts_chunk$set( collapse = TRUE, comment = "#>" )
The data included in this package comes from the article
Kiesha Prem, Alex R. Cook, Mark Jit, Projecting social contact matrices in 152 countries using contact surveys and demographic data, PLoS Comp. Biol. (2017), https://doi.org/10.1371/journal.pcbi.1005697.
and as indicated by the title, not all countries were included.
The full list is available with the
(all_contacts <- list_countries())
Below is a map that may help you find out which countries are absent from the dataset:
library(ggplot2) wlrd <- map_data("world") wlrd$region <- countrycode::countryname(wlrd$region) wlrd$included <- wlrd$region %in% all_contacts ggplot(wlrd, aes(long, lat, group = group, fill = included)) + geom_polygon() + coord_equal() + theme_bw()
Note that this package does not make any geopolitical statement and only provides the data as it has been published.
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.