Learn R Programming

ess (version 1.1.2)

plot.gengraph: Plot

Description

A wrapper around igraphs plot method for gengraph objects

Usage

# S3 method for gengraph
plot(x, vc = NULL, ...)

Arguments

x

A gengraph object

vc

Named character vector; the names are the vertices and the elements are the colors of the nodes

...

Extra arguments. See the igraph package

Value

No return value, called for side effects

Examples

Run this code
# NOT RUN {
d <- derma[, 10:25]
g <- fit_graph(d)
vs <- colnames(d)
vcol <- structure(vector("character", length(vs)), names = vs)
vcol[1:4]  <- "lightsteelblue2"
vcol[5:7]  <- "orange"
vcol[8:16] <- "pink"
plot(g, vcol)
# }

Run the code above in your browser using DataLab