| display_motifsDataset | R Documentation |
Displays the dataset as a heatmap (encoded via SAX binning) and overlays colored markers at the positions where the selected motifs occur.
display_motifsDataset(dataset, rstmotifs, alpha)
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
|
alpha |
Integer. The cardinality of the SAX alphabet (number of discretization levels). |
A ggplot object showing the heatmap with
motif positions highlighted as colored squares.
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
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.