plotMetaFit {batman} | R Documentation |
This function plots posterior means of the metabolite fit with 95% credible interval , and saves the figure to pdf file in specified directory. For multiple metabolites, the file name is in the format of "spec_itoj_mFitSam.pdf", where i and j are range numbers of spectra in the figure. A maximum of 2 spectra will be shown in each figure. Figure file will not be overwritten if it already exists. Prefix can be added to the file name for new saves.
plotMetaFit(BM, from, to, metaName, saveFig = TRUE, saveFigDir = BM$outputDir, prefixFig, rerun = FALSE, overwriteFig = FALSE, showPlot)
BM |
|
from |
The start ppm value to plot. Default is set to the start ppm value of the whole processed range. |
to |
The end ppm value to plot. Default is set to the end ppm value of the whole processed range. |
metaName |
Only multiplets belonging to the named Metabolite will be shown. Only one metabolite name can be given. If missing, all metabolites will be plotted. |
saveFig |
Save figure to pdf file if set TRUE. The default is TRUE. |
saveFigDir |
Save figure in this directory. The default is current working directory. |
prefixFig |
Add prefix to each saved figure name. The default is no prefix. |
rerun |
Set to FALSE to plot |
overwriteFig |
Overwrite saved figure file in pdf format if |
showPlot |
If set |
library(batman) ## Run BATMAN fit, then plot metabolite fit if(interactive()) { bm<-batman() ## Plot metabolites Fit. plotMetaFit(bm) }