Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

layout_randomly

Randomly place vertices on a plane or in 3d space


Description

This function uniformly randomly places the vertices of the graph in two or three dimensions.

Usage

layout_randomly(graph, dim = 2)

randomly(...)

Arguments

graph

The input graph.

dim

Integer scalar, the dimension of the space to use. It must be 2 or 3.

...

Parameters to pass to layout_randomly.

Details

Randomly places vertices on a [-1,1] square (in 2d) or in a cube (in 3d). It is probably a useless layout, but it can use as a starting point for other layout generators.

Value

A numeric matrix with two or three columns.

Author(s)

See Also


igraph

Network Analysis and Visualization

v1.2.10
GPL (>= 2)
Authors
See AUTHORS file.
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.