View source: R/plot_classified_syns.R
plot_classified_syns | R Documentation |
Plot muscle synergies
plot_classified_syns( x, dark_mode = FALSE, line_size = 0.9, dot_size = 0.1, line_col = "black", sd_col = "grey80", condition = NA, show_plot = TRUE )
x |
List of objects of class |
dark_mode |
To enable dark mode |
line_size |
Line thickness |
dot_size |
Dot size on motor modules |
line_col |
Line colour |
sd_col |
Standard deviation ribbon colour |
condition |
Character: the condition that is being analysed, for archiving purposes |
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
.
Global plot containing the average classified muscle synergies and individual trials (motor modules) or standard deviations (motor primitives)
# Load some data data(SYNS) # Classify synergies with k-means SYNS_classified <- classify_kmeans(SYNS) # Save plot of classified synergies pp <- plot_classified_syns(SYNS_classified, dark_mode = TRUE, line_col = "tomato1", sd_col = "tomato4", condition = "TW", show_plot = FALSE )
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.