View source: R/helper_gengraph.R
| plot.gengraph | R Documentation |
A wrapper around igraphs plot method for gengraph objects
## S3 method for class 'gengraph'
plot(x, vc = NULL, ...)
x |
A |
vc |
Named character vector; the names are the vertices and the elements are the colors of the nodes |
... |
Extra arguments. See the igraph package |
No return value, called for side effects
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.