Description Usage Arguments Value Examples
Visualise networks generated by the function ahn_gen
.
1 2 |
ahn |
Networks returned by |
NodeLabels |
The labels of nodes in |
NodeColors |
The colors of nodes in |
NodeSizes |
The sizes of nodes in |
Return a plot of the network
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | # generate a weighted and connected network and plot it by default
N <- 10
x <- runif(N, 0, 5)
ahn <- ahn_gen(N, L = 5, mu = 1, lamda = 5, X = x)
ahn_plot(ahn)
# plot the network with specified colors, labels and sizes for nodes
ahn_plot(
ahn,
NodeColors = sample(4, N, replace = TRUE),
NodeLabels = letters[1:N],
NodeSizes = seq(1, 5, length.out = N))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.