plot_classified_syns {musclesyneRgies} | R Documentation |
Plot muscle synergies
Description
Plot muscle synergies
Usage
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
)
Arguments
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 |
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
Global plot containing the average classified muscle synergies and individual trials (motor modules) or standard deviations (motor primitives)
Examples
# 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
)
[Package musclesyneRgies version 1.2.5 Index]