Learn R Programming

ggraph (version 1.0.2)

layout_igraph_manual: Manually specify a layout for layout_igraph

Description

This layout function lets you pass the node positions in manually. Each row in the supplied data frame will correspond to a vertex in the igraph object matched by index.

Usage

layout_igraph_manual(graph, node.positions, circular)

Arguments

graph

An igraph object

node.positions

A data.frame with the columns x and y (additional columns are ignored).

circular

Ignored

Value

A data.frame with the columns x, y, circular as well as any information stored as vertex attributes on the igraph object.

See Also

Other layout_igraph_*: layout_igraph_auto, layout_igraph_circlepack, layout_igraph_dendrogram, layout_igraph_hive, layout_igraph_linear, layout_igraph_partition, layout_igraph_treemap