Construct an igraph graph object from the centroids of tracts stored as an sf data.frame, where tracts are linked iff adjacent.
1 | construct_information_graph(tracts, data_df, divergence)
|
tracts |
an sf data.frame storing polygons in the geometry column |
data_df |
a tibble containing demographic data |
divergence |
the divergence function with which to compare demographic distributions, one of c(DKL, euc, cum_euc). |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.