lowpass {biosignalEMG} | R Documentation |
Lowpass filter an EMG signal
Description
Lowpass filter an EMG signal.
Usage
lowpass(data, channel, cutoff = 50, n = 5, data.name)
Arguments
data |
an ‘emg’ object. |
channel |
in case of multi-channel data, |
cutoff |
cutoff frequency in Hertz for the lowpass filter. |
n |
filter order for the lowpass filter. |
data.name |
a string specifying the name of the variable which will appears on the plots. If empty or not provided is taken from the object given as |
Details
This procedure performs a lowpass filtering to the EMG signal with delay correction.
Value
An ‘emg’ object which contains the filtered EMG.
Note
This procedure only uses a butterworth type filter of order n
. In order to apply a different type of filter, please see the documentation of the ‘signal’ package.
Author(s)
J.A. Guerrero jaguerrero@correo.uaa.mx
See Also
dcbiasremoval
, whitening
, highpass
Examples
# This example computes the LE-envelope using the lowpass routine
# Load a data.frame with EMG data
data(emg95306000)
# Coerce a data.frame into an 'emg' object
x <- as.emg(emg95306000, samplingrate = 1000, units = "mV")
# Compute the rectified signal
x_rect <- rectification(x)
# Filter the rectified signal
y <- lowpass(x_rect, cutoff = 100)
# change graphical parameters to show multiple plots
op <- par(mfrow = c(3, 1))
# plot the original channel, the filtered channel and the
# LE-envelope
plot(x, channel = 1, main = "Original channel")
plot(x_rect, main = "Rectified channel")
plot(y, main = "LE-envelope")
# reset graphical parameters
par(op)