
Last chance! 50% off unlimited learning
Sale ends in
rgl
package, rglplot
plots a graph
in 3D. The plot can be zoomed, rotated, shifted, etc. but the
coordinates of the vertices is fixed.rglplot (x, layout = layout.random, layout.par = list(), labels = NULL,
label.color = "darkblue", label.font = NULL, label.degree = -pi/4,
label.dist = 0, vertex.color = "SkyBlue2", vertex.size = 15,
edge.color = "darkgrey", edge.width = 1, edge.labels = NA,
...)
tkplot
.layout
argument is a
function. The parameters themselves are layout function dependent,
they are discussed in the
NA
the plot will have no
labels, if NULL
numeric ids starting from one will be
used. If a character vector of length one with prefia:
a:
a:
a:
giving the vertex attribute to use.a:
a:
NA
which suppresses edge
labels. The vector might contain NA
's as well to suppress
labels for some edges.NULL
, invisibly.rglplot
is considered to be highly experimental. It
is not very useful either.plot.igraph
for the 2D version,
tkplot
for interactive graph drawing in 2D.g <- graph.lattice( c(5,5,5) )
coords <- layout.fruchterman.reingold(g, dim=3)
rglplot(g, layout=coords)
Run the code above in your browser using DataLab