layout.drl | R Documentation |
layout.drl()
was renamed to layout_with_drl()
to create a more
consistent API.
layout.drl(
graph,
use.seed = FALSE,
seed = matrix(runif(vcount(graph) * 2), ncol = 2),
options = drl_defaults$default,
weights = NULL,
dim = 2
)
graph |
The input graph, in can be directed or undirected. |
use.seed |
Logical scalar, whether to use the coordinates given in the
|
seed |
A matrix with two columns, the starting coordinates for the
vertices is |
options |
Options for the layout generator, a named list. See details below. |
weights |
The weights of the edges. It must be a positive numeric vector,
|
dim |
Either ‘2’ or ‘3’, it specifies whether we want a two dimensional or a three dimensional layout. Note that because of the nature of the DrL algorithm, the three dimensional layout takes significantly longer to compute. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.