| signal_shift {alkahest} | R Documentation |
Shift the X Scale
Description
Shifts the x scale by a given value.
Usage
signal_shift(x, y, lag, ...)
## S4 method for signature 'numeric,numeric'
signal_shift(x, y, lag)
## S4 method for signature 'ANY,missing'
signal_shift(x, lag)
Arguments
x, y |
A |
lag |
A |
... |
Currently not used. |
Value
Returns a list with two components x and y.
Author(s)
N. Frerebeau
See Also
Other signal processing methods:
signal_bind(),
signal_correct(),
signal_drift(),
signal_mean(),
subset()
Examples
## X-ray diffraction
data("XRD")
## Plot spectrum
plot(XRD, type = "l", xlab = expression(2*theta), ylab = "Count")
## Shift by one degree
XRD_offset <- signal_shift(XRD, lag = 1)
lines(XRD_offset, type = "l", col = "red")
[Package alkahest version 1.2.0 Index]