Graphics Reference
In-Depth Information
# Set a property of the entire graph
g$layout <- layout.fruchterman.reingold
plot(g)
The properties of the edges can also be set, either with the E() function or by passing values to
edge. xxx arguments ( Figure 13-11 ):
# View the edges
E(g)
# Set some of the labels to "M"
E(g)[c(2,11,19)]$label <- "M"
# Set color of all to grey, and then color a few red
E(g)$color <- "grey70"
E(g)[c(2,11,19)]$color <- "red"
plot(g)
Search WWH ::




Custom Search