Learn R Programming

ctsfeatures (version 1.2.2)

plot_cts: Constructs a categorical time series plot

Description

plot_cts constructs a categorical time series plot

Usage

plot_cts(series, title = "Time series plot")

Value

The categorical time series plot.

Arguments

series

An object of type tsibble (see R package tsibble), whose column named Value contains the values of the corresponding CTS. This column must be of class factor and its levels must be determined by the range of the CTS.

title

The title of the graph.

Author

Ángel López-Oriona, José A. Vilar

Details

Constructs a categorial time series plot for a given CTS.

References

weiss2018introductionctsfeatures

Examples

Run this code
sequence_1 <- GeneticSequences[which(GeneticSequences$Series==1),]
time_series_plot <- plot_cts(series = sequence_1) # Constructs a categorical
# time series plot for the first 50 observations of the first  time series in
# dataset GeneticSequences

Run the code above in your browser using DataLab