mp: Matrix Plot

Description Usage Arguments Details Examples

Description

Plot a matrix of values in the same order that it is stored (the usual mathematical way).

Usage

1
mp(mat, ...)

Arguments

mat

A numeric matrix to be plotted

...

Additional arguments to pass to image()

Details

The mp() function is a simple wrapper to image() with a few minor changes. The plot is flipped so that points correspond to their position in the matrix. Also, the colours are scaled so that red is the maximum value in the matrix and white is the minimum value.

Examples

1
2
3
4
# From the vignette:
data(mpmidata)
ctsresult <- cmi(cts)
mp(ctsresult$bcmi)

mpmi documentation built on May 2, 2019, 6:10 p.m.