layout_with_drl(graph, use.seed = FALSE, seed = matrix(runif(vcount(graph) *
2), ncol = 2), options = drl_defaults$default, weights = E(graph)$weight,
fixed = NULL, dim = 2)with_drl(...)
seed
argument as a starting point.use.seed
is TRUE
. It is ignored otherwise.NULL
here if you want to
weight edges equally. By default the weight
edge attribute is used if
the graph has one.TRUE
are kept at the coordinates supplied in
the seed
matrix. It is ignored it NULL
or if use.seed
is FALSE
.layout_with_drl
.The generator has the following parameters: [object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],There are five pre-defined parameter settings as well, these are called
drl_defaults$default
, drl_defaults$coarsen
,
drl_defaults$coarsest
, drl_defaults$refine
and
drl_defaults$final
.
layout
for other layout generators.g <- as.undirected(sample_pa(100, m=1))
l <- layout_with_drl(g, options=list(simmer.attraction=0))
plot(g, layout=l, vertex.size=3, vertex.label=NA)
Run the code above in your browser using DataCamp Workspace