plotDiagnosticScatter: Diagnostic scatter plot of batman metabolites fit vs NMR...

Description Usage Arguments Examples

View source: R/plotDiagnosticScatter.R

Description

When fitting a large number of spectra, this plot facilitates discovery of spectra or metabolites which are poorly fit.

Usage

1
2
3
4
plotDiagnosticScatter(BM, binWidth = 0.018, cexID = 0.5, saveFig = TRUE, 
                      saveFigDir = BM$outputDir, prefixFig, 
                      rerun = FALSE, placeLegend = "topright", 
                      overwriteFig = FALSE, showPlot)

Arguments

BM

batman output data frame.

binWidth

The full width of the bins to integrate. The centre of a bin is the estimated mean posterior chemical shift for each multiplet in each spectrum.

cexID

Character size for the spectra ID number.

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 batman result, and TRUE to plot batmanrerun result.

placeLegend

Where to place the legend in figure. The default is "topright".

overwriteFig

Overwrite saved figure file in pdf format if overwriteFig = TRUE. If set to FALSE, a new figure file with system time as postfix will be created. The default is FALSE.

showPlot

If set FALSE, no plot will be shown on display, the pdf file(s) for the figure plot(s) will be created in output folder. If missing from input, for windows and osx operating systems, it will be set to TRUE, for the rest operating systems, it will be set to FALSE automatically.

Examples

1
2
3
4
5
6
7
8
library(batman)
## Run BATMAN 
if(interactive()) 
{
bm<-batman()
## then plot results
plotDiagnosticScatter(bm)
}

batman documentation built on June 7, 2017, 3 p.m.