R: Matrix Plot

mp {mpmi} | R Documentation

## Matrix Plot

### Description

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

### Usage

    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

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

[Package mpmi version 0.43.1 Index]