Learn R Programming

sfsmisc (version 1.1-19)

mpl: Simple Matrix Plots

Description

Do simple matrix plots, providing an easy interface to matplot by using a default x variable.

Usage

mpl(mat, ...)
p.m(mat, ...)

Arguments

mat

numeric matrix.

...

further arguments passed to matplot, e.g., type, xlab, etc.

Author

Martin Maechler

Details

p.m(m) use the first column of m as \(x\) variable, whereas mpl(m) uses the integers 1, 2, ..., nrow(m) as coordinates and rownames(m) as axis labels if possible.

See Also

matplot, plot.mts(*, plot.type = "single").

Examples

Run this code
data(animals, package = "cluster")
mpl(animals, type = "l")

Run the code above in your browser using DataLab