| signal_shift | R Documentation |
Shifts the x scale by a given value.
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)
x, y |
A |
lag |
A |
... |
Currently not used. |
Returns a list with two components x and y.
N. Frerebeau
Other signal processing methods:
signal_bind(),
signal_correct(),
signal_drift(),
signal_mean(),
subset()
## 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")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.