plot_classified_syns_UMAP: Plot 2D UMAP of muscle synergies

View source: R/plot_classified_syns_UMAP.R

plot_classified_syns_UMAPR 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 musclesyneRgies (must be classified)

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
)

musclesyneRgies documentation built on July 20, 2022, 1:05 a.m.