knitr::opts_chunk$set( dpi = 300, collapse = TRUE, comment = "#>", fig.path = "man/figures/README-", warning = FALSE, message = FALSE )
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)
fun_downstream_nodes(g, 8) fun_upstream_nodes(g, 2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.