layout_randomly | R Documentation |
This function uniformly randomly places the vertices of the graph in two or three dimensions.
layout_randomly(graph, dim = 2)
randomly(...)
graph |
The input graph. |
dim |
Integer scalar, the dimension of the space to use. It must be 2 or 3. |
... |
Parameters to pass to |
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.
A numeric matrix with two or three columns.
Gabor Csardi csardi.gabor@gmail.com
Other graph layouts:
add_layout_()
,
component_wise()
,
layout_()
,
layout_as_bipartite()
,
layout_as_star()
,
layout_as_tree()
,
layout_in_circle()
,
layout_nicely()
,
layout_on_grid()
,
layout_on_sphere()
,
layout_with_dh()
,
layout_with_fr()
,
layout_with_gem()
,
layout_with_graphopt()
,
layout_with_kk()
,
layout_with_lgl()
,
layout_with_mds()
,
layout_with_sugiyama()
,
merge_coords()
,
norm_coords()
,
normalize()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.