probKMA_silhouette_plot: Plot Silhouette Index from probKMA Results

View source: R/probKMA_silhouette_plot.R

probKMA_silhouette_plotR Documentation

Plot Silhouette Index from probKMA Results

Description

This function generates a bar plot displaying the adapted silhouette index based on the results from the 'probKMA' algorithm. It visually represents the quality of the motifs identified by illustrating the average silhouette width for each motif. Additionally, it provides relevant information about the number of curves associated with each motif.

Usage

probKMA_silhouette_plot(silhouette_results, K, plot = TRUE)

Arguments

silhouette_results

A list containing the results from the silhouette analysis, including: - Silhouette indices for each motif. - Motif identifiers. - Curves associated with each motif. - Average silhouette widths. - Number of curves in each motif.

K

An integer representing the number of motifs identified by the 'probKMA' algorithm.

plot

A logical value indicating whether to generate the plot. Default is 'TRUE'.

Value

A list containing the following elements:

silhouette

A vector of silhouette indices for the motifs.

motifs

A vector of motif identifiers.

curves

A vector containing all curves associated with the motifs.

silhouette_average

A vector of average silhouette widths for each motif.


funMoDisco documentation built on April 16, 2025, 1:10 a.m.