plot.gengraph {ess}R Documentation

Plot

Description

A wrapper around igraphs plot method for gengraph objects

Usage

## S3 method for class '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


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)

[Package ess version 1.1.2 Index]