plot_meanEMG {musclesyneRgies} | R Documentation |
Plot EMG averaged across all cycles
Description
Plot EMG averaged across all cycles
Usage
plot_meanEMG(
x,
trial,
row_number = NA,
col_number = 1,
dark_mode = FALSE,
line_size = 0.6,
line_col = "black",
show_plot = TRUE
)
Arguments
x |
A data frame containing filtered EMG organised in columns |
trial |
Character: the name of the considered trial, for archiving purposes |
row_number |
How many rows should the final plot be divided into? |
col_number |
How many columns should the final plot be divided into? |
dark_mode |
To enable dark mode |
line_size |
Line thickness |
line_col |
Line colour |
show_plot |
Logical, to decide whether plots should be plotted in the active graphic device |
Details
If show_plot
is TRUE (default) plots are also shown in the active graphic device.
Plots can then be saved with the preferred export method, such as ggplot2::ggsave
.
Value
Exports average filtered and normalised EMG.
Examples
# Load some data
data(FILT_EMG)
# Save a plot of the only present trial with the average filtered and time-normalised EMG
pp <- plot_meanEMG(FILT_EMG[[1]],
trial = names(FILT_EMG)[1],
row_number = 4,
col_number = 4,
dark_mode = TRUE,
line_col = "tomato3",
show_plot = FALSE
)
[Package musclesyneRgies version 1.2.5 Index]