specplot | R Documentation |
Plot an MS spectrum
specplot( x, y, norm = max(y)/100, cx = 1.5, k = 10, fileName = "title", yrange = c(0, 100), xrange = range(x), maxi = max(y), labels = NULL, mar = c(4, 6, 6, 2), ylab = "Relative Intensity (%)", ylabshift = 0 )
x |
mz coordinates |
y |
intensity coordinates |
norm |
normalize by |
cx |
font size |
k |
top k intensity peaks will be labeled |
fileName |
plot title |
yrange |
y axis range |
xrange |
x axis range |
maxi |
max intensity to be plotted on side |
labels |
data.frame containing at least x and y coordinates, plus optional columns: label and color |
mar |
margins passed to par() |
ylab |
y axis label |
ylabshift |
shift horizontal position of y axis label |
NOTE: This function is deprecated. Use specplot2
instead
plots a spectrum view in the current plotting device
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.