plot.NMRFit1D: Plot NMRFit1D object

Description Usage Arguments Details Value

Description

Generates an interactive plot object using the plotly package.

Usage

1
2
3
4
plot.NMRFit1D(x, components = "r", apply.phase = TRUE,
  sum.lineshapes = TRUE, sum.baseline = TRUE,
  include.convolution = TRUE, deconvolve.residual = FALSE, nrows = 2,
  legend.position = "bottom", fit.legend = NULL, reverse = TRUE)

Arguments

x

An NMRFit1D object.

components

One of either 'r', 'i', or 'r/i' to include real, imaginary or both components. If both components are selected, they are displayed in separate subplots.

apply.phase

TRUE to apply the calculated phase to the data.

sum.lineshapes

TRUE to sum together individual peaks.

sum.baseline

TRUE to add the baseline to each fit.

include.convolution

TRUE to apply convolution to the fit, if available.

deconvolve.residual

TRUE to remove the effect of convolution from the residual, if convolution is not being included in the fit.

nrows

Max number of rows to display subplots.

legend.position

One of either 'bottom' or 'side'.

fit.legend

By default, the fit is shown on the legend if sum.lineshapes is TRUE and omitted if sum.lineshapes is FALSE. Set fit.legend to TRUE or FALSE to override this behaviour.

reverse

TRUE to order x-axis with large values on the left and small values on the right like typical NMR plots.

Details

Convenience function that generates a graphical representation of the fit. The original data is plotted as a black line, the fit is plotted in red, the baseline is plotted in blue, the residual in red. The fit can be plotted as a composite of all the peaks, or individually.

Value

A ggplot2 plot.


ssokolen/rnmrfit documentation built on May 23, 2019, 1:48 p.m.