View source: R/xrd.get.AllPeaks.R
xrd.get.AllPeaks | R Documentation |
Attempts to find peaks in an XRD spectrum and return a list of angles with the peak locations. (Use with caution, might find additional peaks.)
xrd.get.AllPeaks(
data,
min.Prominence = 5,
Try.Sigma = c(0.2, 0.1, 0.05, 0.3),
deltaTheta = 5,
Range = c(0, 90)
)
data |
data frame with intensity and 2 theta angle. |
min.Prominence |
minimum prominence in percent (optional). |
Try.Sigma |
vector with peak widths used to start fitting (optional). |
deltaTheta |
search area around main peak (optional). |
Range |
range to search for peaks (optional). |
sorted vector with peak positions with 0.01 degree precision.
[xrd.find.Peak()]
filename = xrd.getSampleFiles('asc')
d = xrd.import(filename)
xrd.get.AllPeaks(d, deltaTheta = 2, Try.Sigma = c(0.1), Range = c(42, 46))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.