plotComponentResult: Plot non-contiguous simplivariate components by pattern type,...

View source: R/plotComponentResult.R

plotComponentResultR Documentation

Plot non-contiguous simplivariate components by pattern type, with optional reordering

Description

Visualizes GA-detected simplivariate components on the original matrix as outlined cells, colored by pattern type.

Usage

plotComponentResult(
  df,
  string,
  componentPatterns,
  componentScores,
  scoreCutoff = 0,
  showAxisLabels = TRUE,
  showComponentLabels = TRUE,
  title = "Detected Components",
  rearrange = FALSE,
  grayscale = TRUE
)

Arguments

df

Original data matrix

string

Best GA string (vector of length nrow(df) + ncol(df); rows first, then cols)

componentPatterns

Vector of component types (from fitness(..., returnPatterns = TRUE))

componentScores

Vector of fitness scores per component

scoreCutoff

Minimum score a component must have to be shown (default: 0 = show all)

showAxisLabels

Logical: show axis tick labels (default: TRUE)

showComponentLabels

Logical: show component labels inside clusters (default: TRUE)

title

Title for the plot (default: "Detected Components")

rearrange

Logical: reorder rows and columns to group components (default: FALSE)

grayscale

Logical: use grayscale for heatmap background (default: TRUE)

Value

ggplot object


SIMPLICA documentation built on Sept. 11, 2025, 1:08 a.m.