A few functions used for creating and manipulating dendritic networks, mainly wrappers for various igraph functions.
# devtools::install_github("flee598/DenMet")
library(DenMet)
nwk <- DenMet::fun_crtNwk2(10, 0.5)
nwk2 <- igraph::graph.adjacency(nwk)
fun_pltNwk(nwk2, direct = "out", edge.arrow.size = 2)
nwk <- DenMet::fun_convert_nwk(nwk, "dwn_adj")
g <- igraph::graph.adjacency(nwk)
fun_pltNwk(g, "in", edge.arrow.size = 0)
fun_strahler_order(g)
#> [1] 2 2 2 2 1 2 1 2 1 1
fun_downstream_nodes(g, 8)
#> [1] 1 2 3 4 6
fun_upstream_nodes(g, 2)
#> [1] 3 4 5 6 7 8 9 10
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.