plot_multiple_realizations: Plot multiple realizations of a model Useful for checking...

Description Usage Arguments Examples

View source: R/compare_multiple_realizations.R

Description

Plot multiple realizations of a model Useful for checking model appropriateness

Usage

1
plot_multiple_realizations(data, results, plot = c("all"), scales = "free_y")

Arguments

data

The actual and the hypothetical realizations in tidy data format

results

The ACF and Spectral Density values for the actual and hypothetical realizations in tidy data format

plot

A vector of options to plot (Default = c("all")) Other options: 'realization', 'acf', 'spectrum'

scales

The scales argument to be passed to ggplot facet_wrap layer (Default = 'free_y') Other appropriate options: 'fixed'

Examples

1
2
3
4
5
6
7
8
library(tswge)
data("sunspot.classic")
est = est.arma.wge(sunspot.classic,p=8)

r = generate_multiple_realization(x = sunspot.classic,
                                  phi = est$phi, theta = est$theta, vara = est$avar,
                                  seed = 11)
plot_multiple_realizations(data = r$data, results = r$results)

josephsdavid/tswgewrapped documentation built on July 31, 2020, 9:36 a.m.