Learn R Programming

sparsevar (version 0.1.0)

plotMatrix: Matrix plot

Description

Plot a sparse matrix

Usage

plotMatrix(M, colors)

Arguments

M

the matrix to plot

colors

dark or light

Value

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