plot.graph
is able to plot graphs to any R
device. It is the non-interactive companion of the tkplot
function.plot.igraph(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, vertex.frame.color="black", margin=0, loop.angle=0,
axes = FALSE, xlab = "", ylab = "", xlim=c(-1,1), ylim=c(-1,1), ...)
tkplot
.tkplot
.tkplot
.tkplot
.tkplot
.tkplot
.tkplot
.tkplot
.tkplot
.tkplot
.NA
which suppresses edge
labels. The vector might contain NA
's as well to suppress
labels for some edges.plot
.NULL
, invisibly.tkplot
first, handtune the placement of the vertices, query the coordinates
by the tkplot.getcoords
function and use them with
plot
to plot the graph to any R device.
The additional arguments specified are passed to the plot
function.layout
for different layouts,
tkplot
for the better description of the parameters and
an interactive version.g <- graph.ring(10)
plot(g, layout=layout.kamada.kawai, vertex.color="green")
Run the code above in your browser using DataCamp Workspace