Learn R Programming

varband (version 0.9.0)

matimage: Plot the sparsity pattern of a square matrix

Description

Black, white and gray stand for positive, zero and negative respectively

Usage

matimage(Mat, main = NULL)

Arguments

Mat
A matrix to plot.
main
A plot title.

Examples

Run this code
set.seed(123)
p <- 50
n <- 50
phi <- 0.4
true <- varband_gen(p = p, block = 5)
matimage(true)

Run the code above in your browser using DataLab