Description Usage Arguments Value Author(s) Examples
Plots nodes of a network in hyperbolic space, given node polar coordinates and colours.
1 | plot_hyperbolic_nodes(nodes, node.colour)
|
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 nodes 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 nodes and colour them all in blue
plot_hyperbolic_nodes(net$polar, "blue")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.