net_enn | R Documentation |
Construct an epsilon-network from a distance matrix.
net_enn( D, eps, treat_NA_as = 1, is_dist_symetric = TRUE, weighted = FALSE, invert_dist_as_weight = TRUE, add_col_rownames = TRUE )
D |
Distance matrix |
eps |
the threshold value to be considered a link. Only values lower or equal to epsilon become 1. |
treat_NA_as |
A numeric value, usually 1, that represent NA values in the distance matrix |
is_dist_symetric |
Boolean, TRUE (default) if dist is symmetric |
weighted |
Boolean, TRUE will create a weighted network |
invert_dist_as_weight |
Boolean, if weighted == TRUE, then the weights become 1 - distance. This is the default behavior since most network measures interpret higher weights as stronger connection. |
add_col_rownames |
Boolean. If TRUE (default), it uses the column and row names from dist matrix as node labels. |
a igraph network
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.