## ----include = FALSE----------------------------------------------------------
knitr::opts_chunk$set(
  collapse = TRUE,
  comment = "#>"
)

## -----------------------------------------------------------------------------
java_correct <- rjd3highfreq::check_java_version()  
  
knitr::opts_chunk$set(  
    echo = TRUE,  
    eval = java_correct  
) 

## ----java-check, echo=FALSE, results="asis"-----------------------------------
if (!java_correct) {  
    cat("  
This vignette requires Java 21 or newer.   
The computational examples were therefore skipped.  
") 
}

## -----------------------------------------------------------------------------
library("rjd3highfreq")

x11decomp  <- x11plus(
    series = rjd3toolkit::ABS$X0.2.09.10.M,
    period = 12
)

plot(x11decomp)

## -----------------------------------------------------------------------------

x11decomp  <- x11plus(
    series = rjd3toolkit::ABS$X0.2.09.10.M,
    period = 12,
    trend_horizon = 99
)

plot(x11decomp)

