getAxisAngles: getAxisAngles

Description Usage Arguments Details Value Author(s) Examples

Description

Given a graph with vertice positions along axis, calculate the angles of the axes.

Usage

1
getAxisAngles(graph, firstAxis = 0, degrees = FALSE)

Arguments

graph

An igraph object

firstAxis

By defualt the first axis is positioned along the x-axis. This arugment allows that to be adjusted, which would offset all the axes by that amount.

degrees

Logical indicating of firstAxis is specified in degrees. Default is FALSE.

Details

Given a graph with vertice positions along axis, calculate the angles of the axes.

Value

A numerical vector giving the axis angle for each node in graph

Author(s)

Jared P. Lander

Examples

1
2
3
4
5
library(igraph)
data(flights)
g <- graph.data.frame(flights, directed=FALSE)
g <- findAxes(g)
getAxisAngles(g)

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