Learn R Programming

FTSgof (version 1.0.0)

rainbow3D: 3D Rainbow Plot for Functional Time Series

Description

This function creates a 3D rainbow plot of a functional time series (FTS) using the rgl package. The data is color-coded using a rainbow color scheme, with earlier curves in red and later curves in violet. A 360-degree interactive view is available through an embedded widget.

Usage

rainbow3D(f_data)

Value

A 3D rainbow plot of the functional time series data.

Arguments

f_data

A \(J \times N\) matrix of functional time series data, where \(J\) is the number of discrete points in the grid and \(N\) is the sample size.

Examples

Run this code
# \donttest{
data(Spanish_elec) # Daily Spanish electricity price profiles
rainbow3D(Spanish_elec)

data(sp500) # S&P500 index data
rainbow3D(OCIDR(sp500))
# }

Run the code above in your browser using DataLab