Description Usage Arguments Examples
View source: R/plotBatmanFitStack.R
This function plots the BATMAN fit results in stack, and saves the figure to pdf file in specified directory. User can choose to plot all or some of the spectra analyzed, show the metabolite fit and give a range for x and y limits. The figure file will not be overwritten if it already exists by default. A prefix can be added to the file name for new saves.
1 2 3 4 5 6 7 |
BM |
|
offset |
Offset value for the stack plot. |
mirroredWav |
Plot mirrored wavelet fit if set TRUE. The default is TRUE |
specNo |
Vector of spectra ID in the input order to specify which spectra to be plotted in stack plot. |
xfrom |
The start ppm value to plot. Default is set to the start ppm value of the whole processed range. |
xto |
The end ppm value to plot. Default is set to the end ppm value of the whole processed range. |
yfrom |
The start value of vertical axis to plot. Default is set to 0. |
yto |
The end value of vertical axis to plot. Default is set to the maximum value of the spectrum point in display. |
listMeta |
Individual metabolite fit will also be shown in the plot if set TRUE. The default is FALSE. |
metaName |
One or more specified metabolite fits will be shown in the plot.
If no name was given and |
saveFig |
Save figure to pdf file if set TRUE. The default is TRUE. |
saveFigDir |
Save figure in this directory. The default is output directory of BM. |
prefixFig |
Add prefix to each saved figure name. The default is no prefix. |
rerun |
Set to FALSE to plot |
placeLegend |
Where to place the legend in figure. The default is "topright". |
plotColour |
User can specify colours for each metabolite if |
overwriteFig |
Overwrite saved figure file in pdf format if |
metaLwd |
The line widths for metabolite fit. |
metaLty |
The line types for metabolite fit. |
orientation |
The orientation of plot, either portrait or landscape, the defult is "L". |
showPlot |
If set |
1 2 3 4 5 6 7 8 | library(batman)
## Run BATMAN
if(interactive())
{
bm<-batman()
## then plot results
plotBatmanFitStack(bm)
}
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.