View source: R/plot.massdiffhist.R
Plot massdiff histogram with option of labeling peaks corresponding to known
adducts or chemical transformations. The best-matching adducts for each
histogram bin are found internally with adductMatch.histogram.
| 1 2 3 4 5 | 
| hist | Histogram of a massdiff object produced by
 | 
| add | data.frame; adduct data to use to annotate the mass diff peaks,
(default: built-in data set  | 
| labels | numeric; label histogram peaks with top N adducts from the
adduct table specified to option  | 
| pch | Plot character to use for highlighting adduct peaks | 
| col | Color for labels and text | 
| cex | Character scaling for labelled points and text | 
| pos | Position of text label, values 1, 2, 3, 4 are below, left, above, and to the right of points respectively. | 
| main | character; Title for histogram plot | 
| xlab | character; X-axis label | 
| ... | Other parameters to pass to plot | 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.