plot_hyperbolic_net: Plot a network in hyperbolic space

Description Usage Arguments Value Author(s) Examples

Description

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

Usage

1
plot_hyperbolic_net(network, nodes, node.colour = 1)

Arguments

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.

Value

A ggplot of the given network 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 and colour nodes according to their radial coordinates
plot_hyperbolic_net(net$network, net$polar, net$polar$theta)

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