plot_classified_syns_UMAP {musclesyneRgies} | R Documentation |
Plot 2D UMAP of muscle synergies
plot_classified_syns_UMAP(x, condition, show_plot = TRUE)
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 |
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
.
2D UMAP plot of classified synergies.
# 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
)