display_motifsDataset: Plot Heatmap with Highlighted Motifs

display_motifsDatasetR Documentation

Plot Heatmap with Highlighted Motifs

Description

Displays the dataset as a heatmap (encoded via SAX binning) and overlays colored markers at the positions where the selected motifs occur.

Usage

display_motifsDataset(dataset, rstmotifs, alpha)

Arguments

dataset

Data frame or matrix containing numeric values. Each column represents a spatial series, each row a time point.

rstmotifs

List of ranked motifs, as returned by RankSTMotifs or CSAMiningProcess.

alpha

Integer. The cardinality of the SAX alphabet (number of discretization levels).

Value

A ggplot object showing the heatmap with motif positions highlighted as colored squares.

Examples

D  <- STMotif::example_dataset
DS <- NormSAX(STMotif::example_dataset, 5)
stmotifs <- SearchSTMotifs(D, DS, 4, 5, 4, 10, 2, 2)
rstmotifs <- RankSTMotifs(stmotifs)
display_motifsDataset(
  dataset = STMotif::example_dataset,
  rstmotifs[c(1:4)],
  5
)


STMotif documentation built on March 30, 2026, 1:06 a.m.