plot_reg {ctsfeatures} | R Documentation |
Constructs the rate evolution graph for a categorical time series
Description
plot_reg
constructs the rate evolution graph
proposed by Ribler (1997).
Usage
plot_reg(
series,
title = "Rate evolution graph",
linear_fit = FALSE,
cat_res = NULL,
...
)
Arguments
series |
An object of type |
title |
The title of the graph. |
linear_fit |
Logical. I |
cat_res |
If this parameter is set to any of the categories of the series, then the function returns a graph of residuals for the linear model associated with the corresponding category |
... |
Additional parameters for the function. |
Details
Given a CTS of length with range
,
, and the
corresponding binarized time series,
,
the function constructs the rate evolution graph. Specifically, consider the
series of cumulated sums given by
, with
,
. The rate evolution graph displays a standard time series
plot for each one of the components of
simultaneously in one graph.
Value
The rate evolution graph.
Author(s)
Ángel López-Oriona, José A. Vilar
References
Ribler RL (1997). Visualizing categorical time series data with applications to computer and communications network traces. Ph.D. thesis, Virginia Polytechnic Institute and State University.
Examples
sequence_1 <- GeneticSequences[which(GeneticSequences$Series==1),]
reg <- plot_reg(sequence_1) # Constructing the rate
# evolution graph for the first time series in dataset GeneticSequences