plot_classified_syns_UMAP {musclesyneRgies} | R Documentation |
Plot 2D UMAP of muscle synergies
Description
Plot 2D UMAP of muscle synergies
Usage
plot_classified_syns_UMAP(x, condition, show_plot = TRUE)
Arguments
x |
List of objects of class |
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
2D UMAP plot of classified synergies.
Examples
# Load some data
data(SYNS)
# Classify synergies with k-means
SYNS_classified <- classify_kmeans(SYNS)
# Save plot
pp <- plot_classified_syns_UMAP(SYNS_classified,
condition = "TW",
show_plot = FALSE
)
[Package musclesyneRgies version 1.2.5 Index]