plot_meanEMG | R Documentation |
Plot EMG averaged across all cycles
plot_meanEMG( x, trial, row_number = NA, col_number = 1, dark_mode = FALSE, line_size = 0.6, line_col = "black", show_plot = TRUE )
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 |
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
.
Exports average filtered and normalised EMG.
# 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 )
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.