plot_ts: Plot real and synthetic time series

plot_tsR Documentation

Plot real and synthetic time series

Description

plot_ts() draws the real and synthetic series one above the other for each component; plot_acf() compares their autocorrelation functions.

Usage

plot_ts(real, synthetic = NULL)

plot_acf(real, synthetic, lag_max = 24L)

Arguments

real

A ts object (or numeric vector/matrix).

synthetic

A synthetic ts with the same number of series.

lag_max

Maximum lag for the autocorrelation function.

Value

A ggplot object.

Examples

fit <- fit_synthesizer(ldeaths)
syn <- generate(fit, seed = 1)
plot_ts(ldeaths, syn)
plot_acf(ldeaths, syn)

SynthesizerPlus documentation built on Oct. 16, 2026, 5:10 p.m.