plot_hyperbolic_nodes: Plot the nodes of a network in hyperbolic space

Description Usage Arguments Value Author(s) Examples

Description

Plots nodes of a network in hyperbolic space, given node polar coordinates and colours.

Usage

1
plot_hyperbolic_nodes(nodes, node.colour)

Arguments

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.

Value

A ggplot of the given network nodes in hyperbolic space.

Author(s)

Gregorio Alanis-Lobato galanisl@uni-mainz.de

Examples

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")

galanisl/NetHypGeom documentation built on May 16, 2019, 5:36 p.m.