Description Usage Arguments Value Examples
View source: R/term_selection.R
Takes the full graph and reduces it to only include nodes (and associated edges) greater than the cutoff strength for important nodes.
1 | reduce_graph(graph, cutoff_strength, imp_method = "strength")
|
graph |
the full graph object |
cutoff_strength |
the minimum node importance to be included in the reduced graph |
imp_method |
a character specifying the importance measurement to be used; takes arguments of "strength", "eigencentrality", "alpha", "betweenness", "hub" or "power" |
an igraph graph with only important nodes
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | dfm <- create_dfm(
elements = c(
"Cross-scale occupancy dynamics of a postfire specialist
in response to variation across a fire regime",
"Variation in home-range size of Black-backed Woodpeckers",
"Black-backed woodpecker occupancy in burned and beetle-killed forests"
),
features = c("occupancy", "variation", "black-backed woodpecker", "burn")
)
my_network <- create_network(search_dfm = as.matrix(dfm),
min_studies = 1,
min_occ = 1)
reduce_graph(my_network, cutoff_strength = 1)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.