Description Usage Arguments Value
Create a tidygraph from flows and remove spurious edges in the process.
1 2 3 4 5 6 | flow_network(
flows,
spurious_if_below = c(rate_o = 0.1, rate_d = 0.1),
label_subgraphs = TRUE,
keep_levels = TRUE
)
|
flows |
Asymptotic od flows |
spurious_if_below |
Remove edges whose attributes are lower than the corresponding threshold. |
label_subgraphs |
Whether to label subgraphs as a result of removing spurious edges. |
keep_levels |
Whether nodes should keep the same factor levels as flows. |
[tbl_graph]
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.