plotS {ALS}R Documentation

Plots a matrix representing mass spectra

Description

For each column in a matrix representing mass spectra, generates a sub-plot

Usage

plotS(S, x2, out="", filename=paste("S.", out, sep = ""),
col=vector(),cex=1, lab="",cex.lab=1)

Arguments

S

matrix representing mass spectra of dimension n by comp where comp is the number of spectra

x2

vector of masses that label the rows of S

out

if "", the plot is written to the current device; if "ps" a postscript file is written and if "pdf" then a pdf file is written

filename

character vector specifying the name of the file to write if out=TRUE

col

if length is greater than zero, then the color to plot each spectrum

cex

cex A numerical value giving the amount by which plotting text and symbols should be magnified relative to the default.

lab

cex.lab A character vector used as y-axis label.

cex.lab

cex.lab A numerical value giving magnification to be used for x and y labels relative to the default.

Author(s)

Katharine M. Mullen

See Also

als

Examples

## load example mass spectra S and vector of m/z values x2
data(multiex)

plotS(S,x2)


[Package ALS version 0.0.7 Index]