Learn R Programming

rTRM (version 1.10.2)

plotGraph: Plot an graph in igraph format.

Description

This function plots graphs of the class igraph.

Usage

plotGraph(g, layout = layout.fruchterman.reingold, mar = .5, vertex.pch = 21, vertex.cex, vertex.col, vertex.bg, vertex.lwd, edge.col, edge.lwd, edge.lty, label = TRUE, label.col, label.cex, label.pos = NULL, label.offset = 1.5, adjust.label.col = FALSE, normalize.layout = TRUE)

Arguments

g
a network object.
layout
graph layout, either a function or the output of a layout function.
mar
plot margin.
vertex.pch
node size.
vertex.cex
node size.
vertex.col
node line color.
vertex.bg
node background color.
vertex.lwd
node line width.
edge.col
edge color.
edge.lwd
edge line width.
edge.lty
edge line type.
label
logical; whether to plot labels.
label.col
label color.
label.cex
label expansion.
label.pos
label position.
label.offset
label offset.
adjust.label.col
whether to automatically adjust label color depending on the luminance of the node's color/s.
normalize.layout
whether to apply layout.norm (with limits xmin=-1, xmax=1, ymin=-1, ymax=1) to the layout.