plot2D.colored.graph: Plot a Graph with Colored Vertices

View source: R/graph_embedding_spectrum.R

plot2D.colored.graphR Documentation

Plot a Graph with Colored Vertices

Description

Plot a Graph with Colored Vertices

Usage

plot2D.colored.graph(
  embedding,
  adj.list,
  vertex.colors,
  vertex.size = 1,
  edge.alpha = 0.2,
  color.palette = NULL,
  main = "",
  add.legend = TRUE
)

Arguments

embedding

Numeric ⁠n x 2⁠ matrix of vertex coordinates.

adj.list

Graph adjacency list.

vertex.colors

Numeric color value for each vertex.

vertex.size

Base graphics point size.

edge.alpha

Edge alpha in ⁠[0, 1]⁠.

color.palette

Optional vector of colors.

main

Plot title.

add.legend

Logical; add color scale legend.

Value

Invisibly returns NULL; produces a plot as a side effect.


dgraphs documentation built on Aug. 21, 2026, 1:08 a.m.