Display the pattern of non-zero entries of
a matrix of class matrix.csr.

Usage

# S4 method for matrix.csr
image(x, col=c("white","gray"),
xlab="column", ylab="row", ...)

Arguments

x

a matrix of class matrix.csr.

col

a list of colors such as that generated by rainbow.
Defaults to c("white","gray")

xlab,ylab

each a character string giving the labels for the x and y axis.

...

additional arguments.

Details

The pattern of the non-zero entries of a sparse matrix
is displayed. By default nonzero entries of the matrix appear
as gray blocks and zero entries as white background.