plot_ph | R Documentation |
plot_ph
constructs the pattern histogram associated with a given category of a
categorical time series.
plot_ph(
series,
category,
plot = TRUE,
title = paste0("Pattern histogram (", category, ")"),
...
)
series |
An object of type |
category |
The selected category. |
plot |
Logical. If |
title |
The title of the graph. |
... |
Additional parameters for the function. |
Constructs the pattern histogram for a specific category of a CTS. This graph represents the frequencies of the cycles for the corresponding category according to their length.
The pattern histogram.
Ángel López-Oriona, José A. Vilar
weiss2008visualctsfeatures
sequence_1 <- GeneticSequences[which(GeneticSequences$Series==1),]
ph <- plot_ph(sequence_1,
category = 'a') # Constructing the pattern histogram
# for the first CTS in dataset GeneticSequences concerning the category 'a'
cycle_lengths <- plot_ph(sequence_1,
category = 'a', plot = FALSE) # Obtaining the frequencies of cycle lengths
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.