| display_motifsSTSeries | R Documentation |
Displays the selected spatial-time series and highlights the segments corresponding to the discovered motifs using distinct colors.
display_motifsSTSeries(dataset, rstmotifs, space = seq_len(ncol(dataset)))
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
|
space |
Integer vector specifying which columns (spatial series) to display. Defaults to all columns. |
A ggplot object showing the time series
with motif occurrences highlighted in color.
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)
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.