matimage: Plot the sparsity pattern of a square matrix

Description Usage Arguments Examples

View source: R/utils.R

Description

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

Usage

1
matimage(Mat, main = NULL)

Arguments

Mat

A matrix to plot.

main

A plot title.

Examples

1
2
3
4
5
6
set.seed(123)
p <- 50
n <- 50
phi <- 0.4
true <- varband_gen(p = p, block = 5)
matimage(true)

hugogogo/varband documentation built on May 17, 2019, 9:12 p.m.