plot.gengraph: Plot

Description Usage Arguments Value Examples

View source: R/helper_gengraph.R

Description

A wrapper around igraphs plot method for gengraph objects

Usage

1
2
## 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

1
2
3
4
5
6
7
8
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)

ess documentation built on May 31, 2021, 9:10 a.m.