Learn R Programming

sparsevar (version 1.0.0)

plot_matrix: Matrix plot

Description

Plot a sparse matrix

Usage

plot_matrix(m, colors)

Value

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

Arguments

m

the matrix to plot

colors

dark or light