plot.fssa: Plot Functional Singular Spectrum Analysis Objects

View source: R/fssaplot.R

plot.fssaR Documentation

Plot Functional Singular Spectrum Analysis Objects

Description

This function is a plotting method for objects of class functional singular spectrum analysis (fssa). It aids users in making decisions during the grouping stage of univariate or multivariate functional singular spectrum analysis.

Usage

## S3 method for class 'fssa'
plot(
  x,
  d = length(x$values),
  idx = 1:d,
  idy = idx + 1,
  contrib = TRUE,
  groups = as.list(1:d),
  lwd = 2,
  type = "values",
  vars = NULL,
  ylab = NA,
  main = NA,
  ...
)

Arguments

x

An object of class fssa.

d

An integer representing the number of elementary components to plot.

idx

A vector of indices specifying which eigen elements to plot.

idy

A second vector of indices of eigen elements to plot (for type="paired").

contrib

A logical value. If TRUE (default), it displays the component's contribution to the total variance.

groups

A list or vector of indices determining the grouping used for decomposition (for type="wcor").

lwd

A vector of line widths.

type

The type of plot to be displayed. Possible types include:

  • "values" - Plot the square-root of eigen values (default).

  • "paired" - Plot pairs of right singular function's coefficients (useful for detecting periodic components).

  • "wcor" - Plot the W-correlation matrix for the reconstructed objects.

  • "vectors" - Plot the right singular vectors (useful for detecting period length).

  • "lcurves" - Plot left singular functions (useful for detecting period length).

  • "lheats" - Heatmap plot of eigenfunctions, usable for funts variables observed over one or two-dimensional domains (useful for detecting meaningful patterns).

  • "periodogram" - Periodogram plot right singular vectors (useful for detecting the frequencies of oscillations in functional data).

vars

A numeric value specifying the variable number (used in plotting MFSSA "lheats" or "lcurves").

ylab

A character vector representing the names of variables.

main

The main plot title.

...

Additional arguments to be passed to methods, such as graphical parameters.

See Also

fssa, plotly_funts

Examples

## Not run: 
data("Callcenter")
L <- 28
U <- fssa(Callcenter, L)
plot(U, type = "values", d = 10)
plot(U, type = "vectors", d = 4)
plot(U, type = "paired", d = 6)
plot(U, type = "lcurves", d = 4, vars = 1)
plot(U, type = "lheats", d = 4)
plot(U, type = "wcor", d = 10)

## End(Not run)


Rfssa documentation built on Oct. 27, 2023, 1:08 a.m.