
Last chance! 50% off unlimited learning
Sale ends in
highpass(data, channel, cutoff = 50, data.name)
channel
is the specific channel to be considered by the procedure. Possible values: a character vector specifying the name of the channel to be considered (case sensitive) or a numeric value specifying the channel to be considered (number of column in data
).
data
.
There are various recommendations for the value of the cutoff frequency, for example 5Hz (Merletti, 1999) and 10-20Hz (Freriks et.al., 1999).
Freriks B., Stegeman D.F. and Hermens H.J. (1999) European Recommendations Standards for Surface Electromyography for Surface Electromyography, results of the SENIAM project. ISBN: 90-75452-14-4.
dcbiasremoval
, whitening
# 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")
# Filter the fourth channel in x
y <- highpass(x, cutoff = 100)
# change graphical parameters to show multiple plots
op <- par(mfcol = c(2, 2))
# Compute the rectified signals to see the effect of the filter
x_rect <- rectification(x)
y_rect <- rectification(y)
# plot the original channel, the filtered channel and the corresponding
# rectified signals
plot(x, channel = 1, main = "Original channel")
plot(y, main = "Highpass filtered channel")
plot(x_rect, main = "Rectified channel")
plot(y_rect, main = "Rectified highpass filtered channel")
# reset graphical parameters
par(op)
Run the code above in your browser using DataLab