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.
1 2 |
mz |
Vector containing mz values (x) to plot. |
int |
Vector containing intensity values (y) to plot. |
main |
Title for the plot. |
smiles |
SMILES code of the structure to plot. Leave empty for no structure. |
labels |
Vector containing labels for selected peaks. If |
formatFormula |
If |
mz_a |
Vector containing mz values for second spectrum. |
int_a |
Vector containing intensity values for second spectrum. |
absInt |
If |
ylim_factor |
Scaling factor for y-axis. Default |
max_xlim |
Option to control the maximum value on the x axis. Passed to |
kekulise |
Controls aromaticity detection of |
legend |
Vector containing legend entries for the two spectra. |
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 | mz_1 <- c(58.0287, 111.0441, 168.0655, 210.1125)
int_1 <- c(23.0000, 999.0000, 843.5855, 999.0000)
labels_1 <- c("C2H4NO", "C6H7O2", "C8H10NO3", "C11H16NO3")
smiles_1 <- "O=C(Oc1ccccc1OC(C)C)NC"
plotAnnoSpectrum(mz_1, int_1, main="test spec",labels=labels_1, smiles=smiles_1, mz_a = mz_1,
int_a = int_1)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.