Learn R Programming

graphlayouts (version 1.2.2)

layout_centrality_group: radial centrality group layout

Description

arranges nodes in concentric circles according to a centrality index and keeping groups within a angle range

Usage

layout_with_centrality_group(g, cent, group, shrink = 10, ...)

layout_igraph_centrality_group(g, cent, group, shrink = 10, circular, ...)

Value

matrix of xy coordinates

Arguments

g

igraph object

cent

centrality scores

group

vector indicating grouping of nodes

shrink

shrink the reserved angle range for a group to increase the gaps between groups

...

additional arguments to layout_with_centrality The layout_igraph_* function should not be used directly. It is only used as an argument for plotting with 'igraph'. 'ggraph' natively supports the layout.

circular

not used

See Also

layout_centrality

Examples

Run this code
library(igraph)

Run the code above in your browser using DataLab