Usage
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, ...)
Arguments
data
a vector or a matrix (one column per channel) containing the observed data.
samplingrate
number of samples carried per second, measured in Hertz. A value of 0 indicates that this value is missing or unknown.
units
a character vector specifying the units (usually mV) of the EMG data.
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 data
.
x, object
an object of class emg.
type
what type of plot should be drawn. See plot
for details.
channels
channels to be considered by the procedure. Possible values: "all" to consider all channels in 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
).
samples
samples to be plotted. Possible values: 0 (all samples), an integer n (to plot the first n samples) and a vectors of 2 integers n1 and n2 (to plot samples from n1 to n2).
timeunits
a character vector specifying the units (samples or seconds) for the time axis.
add
logical; if TRUE
add to an already existing plot; if FALSE
start a new plot.
...
additional arguments to be passed to the generic function.