Learn R Programming

LSD (version 2.5)

plotmatrix: Plot a matrix

Description

Plot the rows of a matrix in colored lines.

Usage

plotmatrix(mat, xlim = NULL, ylim = NULL, xlab = NULL, ylab = NULL, main = NULL, type = "l", lwd = 2, at = NULL, xlabels = NULL, ltys = NULL, add = FALSE,cols = NULL, ...)

Arguments

mat
matrix
xlim
xlimits, standard graphics parameter
ylim
ylimits, standard graphics parameter
xlab
xlabs, standard graphics parameter
ylab
ylabs, standard graphics parameter
main
title of the plot
type
type, standard plotting parameter
lwd
lwd, standard plotting parameter
at
at which x-positions the columns should occur
xlabels
text added as x-axis labels
ltys
vector of linetypes
cols
vector of colors
add
add to existing plot
...
additional parameters to be passed to points and plot

See Also

makemovie,LSD.demo.tour

Examples

Run this code
demo.plotmatrix()

Run the code above in your browser using DataLab