nodePosition: nodePosition

Description Usage Arguments Details Value Author(s) Examples

Description

Computes the position of vertices along axes

Usage

1
nodePosition(graph, func = closeness, ...)

Arguments

graph

An igraph object

func

A function that returns a cluster membership for each node

...

Further arguments for func

Details

Computes the position of vertices along axes based on some centrality algorithm such as closeness

Value

A graph with a new Vertex slot 'axis' that stores the cluster membership

Author(s)

Jared P. Lander

Examples

1
2
3
4
5
data(flights)
library(igraph)
g <- graph.data.frame(flights, directed=TRUE)
g2 <- nodePosition(g)
V(g2)$nodePosition

jaredlander/HivePlot documentation built on May 18, 2019, 3:46 p.m.