plotMatrix function

Matrix plot

Matrix plot

Plot a sparse matrix

plotMatrix(M, colors)

Arguments

  • M: the matrix to plot
  • colors: dark or light

Returns

An image plot with a particular color palette (black zero entries, red for the negative ones and green for the positive)

  • Maintainer: Simone Vazzoler
  • License: GPL-2
  • Last published: 2021-04-18