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   | 
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   | 
color | 
 Optional vector to re-define default line colour. Passed to   | 
Returns a plot in the current plotting device.
Emma Schymanski <emma.schymanski@uni.lu>
plotSpectra, renderSMILES.rcdk, chemistry2expression,
trimAnnotation.
1 2 3 4 5  | 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"
plotSpectrum(mz_1, int_1, main="test spec",labels=labels_1, smiles=smiles_1)
 | 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.