gr_cf_fit_add: Add peaks to a spectrum data frame

Description Usage Arguments See Also Examples

View source: R/plot_curvefit.R

Description

Supplied with a spectrum as a tab-separated text-file with wavenumber and intensites, and a curvefit-results table from Wire, it will generate columns for each peak with the corresponding intensities, for easy plotting. The envelope of the fit is also calculated by summing all peaks at each wavenumber.

Usage

1
gr_cf_fit_add(spectrum_file, cf_file)

Arguments

spectrum_file

Path to a tab-separated file with a spectrum in two columns (wavenumber and intensity)

cf_file

Path to a file containing a curvefit results table (made in Wire by right-clicking results of a curvefit and choosing Copy Results)

See Also

Other raman fits: gr_cf_fit_plot

Examples

1
2
3
4
curvefit <- system.file("extdata/curvefit_data.txt", package = "gRaphene")
spectrum <- system.file("extdata/spectrum_example.txt", package = "gRaphene")

gr_cf_fit_add(spectrum, curvefit)

emilbp/gRaphene documentation built on May 13, 2017, 5:12 p.m.