View source: R/xrd.get.AllPeaks.R
xrd.get.AllPeaks | R Documentation |
Finds all the peaks in a spectrum
xrd.get.AllPeaks(
TwoTheta,
Intensity,
min.Prominence = 5,
Try.Sigma = c(0.2, 0.1, 0.05, 0.3),
deltaTheta = 5,
Range = c(0, 90),
verbose = FALSE
)
TwoTheta |
angle |
Intensity |
intensity signal |
min.Prominence |
minimum prominence in percent (optional) |
Try.Sigma |
vector with peak widths used to start fitting (optional) |
deltaTheta |
search area around main peak |
Range |
range to search for peaks (optional) |
verbose |
logical, if |
vector with peak positions
filename = xrd.getSampleFiles()[1]
d = xrd.read.ASC(filename)
peak.list = xrd.get.AllPeaks(d$theta, d$I)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.