Description Usage Arguments Value Author(s) Examples
Plots a network in hyperbolic space, given node polar coordinates and colours.
1 | plot_hyperbolic_net(network, nodes, node.colour = 1)
|
network |
igraph; The network to be plotted. |
nodes |
data frame; Polar coordinates (r, theta) of all nodes in the network. |
node.colour |
vector; An optional parameter that allows to colour nodes according to a colour vector or a single colour. |
A ggplot of the given network in hyperbolic space.
Gregorio Alanis-Lobato galanisl@uni-mainz.de
1 2 3 4 | # Generate an artificial network with the PS model
net <- ps_model(500, 6, 2.5, 0)
# Plot the network and colour nodes according to their radial coordinates
plot_hyperbolic_net(net$network, net$polar, net$polar$theta)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.