View source: R/XPSAddFitComponent.r
XPSaddFitComponent | R Documentation |
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.
XPSaddFitComponent(
Object,
type = "Gauss",
range_h = 5,
range_mu = 1.5,
peakPosition = NULL,
...
)
Object |
XPSCoreLine object |
type |
name of the fitting function used. Default "Gauss" |
range_h |
the value used to determine |
range_mu |
the value used to determine |
peakPosition |
a list with x,y value corresponding the center and height
of the new component. Default is |
... |
to add additional values such as FWHM if needed |
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.
XPSfitAlgorithms, XPSbaseline, findXIndex
## Not run:
XPSdata[["C1s"]] <- XPSaddFitComponent(XPSdata[["C1s"]], type="Voigt", range_h=3)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.