Description Usage Arguments Value Author(s) See Also Examples
This is a wrapper function for plotSpectra
for backwards
compatability with previous workflows/scripts. plotSpectra
offers
much more functionality. xlim
and ylim
are fixed suited to MS1 spectra.
1 2 |
mz |
Vector containing mz values (x) to plot. |
int |
Vector containing intensity values (y) to plot. |
main |
Title for the plot. |
labels |
Vector containing labels for selected peaks. If |
formatFormula |
If |
absInt |
If |
ylim_factor |
Scaling factor for y-axis. Default |
Returns a plot in the current plotting device.
Emma Schymanski <emma.schymanski@uni.lu>
plotSpectra
, renderSMILES.rcdk
, chemistry2expression
,
trimAnnotation
.
1 2 3 4 5 6 7 8 | ms1_mz <- c(210.1125, 211.1154, 212.1187)
ms1_int <- c(420889280, 52790856, 2265951.5)
ms1_labels <- c("[M+H]+", "13C-M+1", "13C-M+2")
smiles_1 <- "O=C(Oc1ccccc1OC(C)C)NC"
plotMS(ms1_mz, ms1_int, main="test MS1 spec",labels=ms1_labels, formatFormula=FALSE,
absInt=TRUE)
plotMS(ms1_mz, ms1_int, main="test MS1 spec",labels=ms1_labels, formatFormula=FALSE,
absInt=FALSE, smiles=smiles_1)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.