Description Usage Arguments Value Examples
interpolate
takes an XY
object and interpolates the
data onto a new 2theta scale using a cubic spline.
1 2 | ## S3 method for class 'XY'
interpolate(x, new_tth, ...)
|
x |
an |
new_tth |
a numeric vector of the new 2theta scale. |
... |
other arguments |
an XY
object.
1 2 3 4 5 6 7 | data(rockjock_mixtures)
#Define a new 2theta scale:
tth <- seq(10, 60, 0.04)
#interpolate data onto new scale
i1 <- interpolate(rockjock_mixtures$Mix1, new_tth = tth)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.