XPSaddFitComponent: XPSaddFitComponent adds a fit component to the XPSCoreLine

View source: R/XPSAddFitComponent.r

XPSaddFitComponentR Documentation

XPSaddFitComponent adds a fit component to the XPSCoreLine

Description

XPSaddFitComponent() adds a fit component to the XPSCoreLine object. This function is called after the definition of the baseline (XPSbaseline). Different types of function could be added as component, see XPSfitAlgorithms for a list of the implemented functions.

Usage

XPSaddFitComponent(
  Object,
  type = "Gauss",
  range_h = 5,
  range_mu = 1.5,
  peakPosition = NULL,
  ...
)

Arguments

Object

XPSCoreLine object

type

name of the fitting function used. Default "Gauss"

range_h

the value used to determine min and max range for Intensity

range_mu

the value used to determine min and max range for xCenter

peakPosition

a list with x,y value corresponding the center and height of the new component. Default is NULL then the position is asked trough the plot with the cursor

...

to add additional values such as FWHM if needed

Value

Usually the values xCenter and Amplitude are get trough a click with the mouse on the plot of the XPSCoreLine. All the parameters will be added to the slot Components of the XPSCoreLine.

See Also

XPSfitAlgorithms, XPSbaseline, findXIndex

Examples

## Not run: 
	XPSdata[["C1s"]] <- XPSaddFitComponent(XPSdata[["C1s"]], type="Voigt", range_h=3)

## End(Not run)

GSperanza/RxpsG_2.3-1 documentation built on Feb. 11, 2024, 5:09 p.m.