layout.random(graph, params)
layout.circle(graph, params)
layout.fruchterman.reingold(graph, ..., params)
layout.kamada.kawai(graph, ..., params)
layout.spring(graph, ..., params)
params
argument.layout.spring
layout.random
simply places the vertices randomly on a
square. It has no parameters.
layout.circle
places the vertices on a unit circle
equidistantly. It has no paramaters.
layout.fruchterman.reingold
uses a force-based algorithm
proposed by Fruchterman and Reingold, see references. Parameters and
their default values:
vcount(graph)
).}
vcount(graph)^2
).}
area
*vcount(graph)).}Kamada, T. and Kawai, S. (1989). An Algorithm for Drawing General Undirected Graphs. Information Processing Letters, 31(1):7-15.
plot.igraph
, tkplot
g <- graph.ring(10)
layout.random(g)
layout.kamada.kawai(g)
Run the code above in your browser using DataLab