plot_adj function

Plot Adjacency Matrix

Plot Adjacency Matrix

This function creates a plot of an adjacency matrix, where the matrix is displayed as an image.

plot_adj(X, ...)

Arguments

  • X: An adjacency matrix to be plotted.
  • ...: Additional graphical parameters to pass to image.

Returns

Generates a plot.

Examples

adj_matrix <- matrix(rbinom(100, 1, 0.5), 10, 10) plot_adj(adj_matrix)
  • Maintainer: Tianhai Zu
  • License: GPL-3
  • Last published: 2024-01-10

Useful links