
emg(data, samplingrate = 0, units = "", data.name = "")
"plot"(x, channels = "all", samples = 0, type = "l", timeunits = c("samples", "seconds"), add = FALSE, ...)
"print"(x, ...)
"summary"(object, ...)
data
.
plot
for details.
data
,
a (vector of) character vector(s) specifying the names(s) of the channel(s) to be considered (case sensitive) or a numeric vector specifying the channels to be considered (number(s) of column(s) in data
).
TRUE
add to an already existing plot; if FALSE
start a new plot.
values
data
units
units
argumentsamplingrate
samplingrate
argumentdata.name
data.name
argumentWinter D.A., Rau G., Kadefors R., Broman H., Deluca C.J. (1980) Units, Terms, and Sandards in the Reporting of EMG Research: A Report by the AdHoc Committee of the International Society of Electrophysiology and Kinesiology.
iemg
, eaemg
# Creates a random vector to simulate an EMG signal
x <- rnorm(10000, 0, 1)
# Creates an 'emg' object to store x
emg1 <- emg(x, samplingrate=1000, units="mV", data.name="")
# Summarize and visualize the data
summary(emg1)
plot(emg1, main="Simulated EMG")
Run the code above in your browser using DataLab