plot-methods | R Documentation |
This is an overloaded method to allow plotting of an
AbstractMassObject
object.
## S4 method for signature 'AbstractMassObject,missing'
plot(x, col="black",
xlab=expression(italic(m/z)), ylab="intensity",
type=ifelse(isMassPeaks(x), "h", "l"),
xlim=c(ifelse(length(x@mass), min(x@mass, na.rm=TRUE), 0),
ifelse(length(x@mass), max(x@mass, na.rm=TRUE), 1)),
ylim=c(0, ifelse(length(x@intensity), max(x@intensity, na.rm=TRUE), 1)),
main=x@metaData$name, sub=x@metaData$file,
cex.sub=0.75, col.sub="#808080", ...)
x |
|
col |
line colour, see |
xlab |
title for the x-axis, see |
ylab |
title for the y-axis, see |
type |
type of plot: see |
xlim |
the x limits (x1, x2) of the plot, see
|
ylim |
the y limits (y1, y2) of the plot, see
|
main |
title for the plot, see |
sub |
sub title for the plot, see |
cex.sub |
sub title font size, see |
col.sub |
sub title color, see |
... |
arguments to be passed to |
Sebastian Gibb mail@sebastiangibb.de
AbstractMassObject
Website: https://strimmerlab.github.io/software/maldiquant/
## load package
library("MALDIquant")
## create a MassSpectrum object by default constructor
s <- createMassSpectrum(mass=1:100, intensity=rnorm(100)^2,
metaData=list(name="example"))
## show some details
s
## plot spectrum
plot(s)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.