View source: R/graph_embedding_spectrum.R
| plot2D.colored.graph | R Documentation |
Plot a Graph with Colored Vertices
plot2D.colored.graph(
embedding,
adj.list,
vertex.colors,
vertex.size = 1,
edge.alpha = 0.2,
color.palette = NULL,
main = "",
add.legend = TRUE
)
embedding |
Numeric |
adj.list |
Graph adjacency list. |
vertex.colors |
Numeric color value for each vertex. |
vertex.size |
Base graphics point size. |
edge.alpha |
Edge alpha in |
color.palette |
Optional vector of colors. |
main |
Plot title. |
add.legend |
Logical; add color scale legend. |
Invisibly returns NULL; produces a plot as a side effect.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.