Description Usage Arguments Value Examples
Generate undirected networks (weighted or unweighted, connected or disconnected) characterising the physical attributes and spatial organizations (or distributions) of habitat components (i.e. habitat configurations).
1 2 |
N |
The number of nodes |
L |
A side length of the rectangle landscape within which nodes are anchored |
mu |
the critical |
lamda |
the steepness of the link removing probability curve |
Connected |
|
Weighted |
|
eta |
mediates the weight, i.e. |
A |
The area of the rectangle landscape within which the network is defined |
X |
A vector of |
Y |
A vector of |
U |
A vector with |
V |
A vector with |
Return an animal habitat network (an igraph
object)
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | # generate a connected and weighted network
ahn_gen(N = 10, L = 5, mu = 1, lamda = 5)
N <- 10
x <- runif(N, 0, 5)
ql <- sample(LETTERS, N, replace = TRUE)
qn <- sample(1:20, N, replace = TRUE)
# specify the X coordinates, node attributes U and V for a connected and unweighted network
ahn_gen(N, L = 5, mu = 1, lamda = 5, Weighted = FALSE, X = x, U = ql, V = qn)
# specify the Y coordinates, node attributes U and V for a weighted network, no matter if the
# network will be connected or not
ahn_gen(N, L = 5, mu = 1, lamda = 5, Weighted = TRUE, Connected = FALSE, Y = x, U = ql, V = qn)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.