plotS: Plots a matrix representing mass spectra

Description Usage Arguments Author(s) See Also Examples

View source: R/plotSp.R

Description

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

Usage

1
2
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

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

plotS(S,x2)

ALS documentation built on May 2, 2019, 6:14 a.m.

Related to plotS in ALS...