display_motifsSTSeries: Plot Spatial-Time Series with Highlighted Motifs

display_motifsSTSeriesR Documentation

Plot Spatial-Time Series with Highlighted Motifs

Description

Displays the selected spatial-time series and highlights the segments corresponding to the discovered motifs using distinct colors.

Usage

display_motifsSTSeries(dataset, rstmotifs, space = seq_len(ncol(dataset)))

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.

space

Integer vector specifying which columns (spatial series) to display. Defaults to all columns.

Value

A ggplot object showing the time series with motif occurrences highlighted in color.

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_motifsSTSeries(
  dataset = STMotif::example_dataset,
  rstmotifs[c(1:4)],
  space = c(1:4, 10:12)
)


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