# plot.fssa: Plot Functional Singular Spectrum Analysis Objects In Rfssa: Functional Singular Spectrum Analysis

 plot.fssa R Documentation

## Plot Functional Singular Spectrum Analysis Objects

### Description

This is a plotting method for objects of class functional singular spectrum analysis (`fssa`). The method is designed to help the user make decisions on how to do 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),
type = "values",
vars = NULL,
ylab = NA,
main = NA,
color_palette = "RdYlBu",
reverse_color_palette = FALSE,
...
)
```

### Arguments

 `x` An object of class `fssa`. `d` An integer which is the number of elementary components in the plot. `idx` A vector of indices of eigen elements to plot. `idy` A second vector of indices of eigen elements to plot (for `type="paired"`). `contrib` A logical where if the value is `TRUE` (the default), the contribution of the component to the total variance is displayed. `groups` A list or vector of indices determines grouping used for the decomposition(for `type="wcor"`). `type` The type of plot to be displayed where possible types are: `"values"` - plot the square-root of singular values (default) `"paired"` - plot the pairs of eigenfunction's coefficients (useful for the detection of periodic components) `"wcor"` - plot the W-correlation matrix for the reconstructed objects `"vectors"` - plot the eigenfunction's coefficients (useful for the detection of period length) `"lcurves"` - plot of the eigenfunctions (useful for the detection of period length) `"lheats"` - heatmap plot of the eigenfunctions which can be used for `fts` variables observed over one or two-dimensional domains (useful for the detection of meaningful patterns) `"periodogram"` - periodogram plot (useful for the detecting the frequencies of oscillations in functional data). `vars` A numeric specifying the variable number (can be used in plotting MFSSA `"lheats"` or `"lcurves"`). `ylab` The character vector of name of variables. `main` The main plot title `color_palette` A string specifying the color palette that is offered by the ggplot2 package to be used when plotting left singular functions corresponding with `fts` variables observed over two-dimensional domains. `reverse_color_palette` A boolean specifying if the color palette scale should be reversed. `...` Arguments to be passed to methods, such as graphical parameters.

### Note

See `fssa` examples.

`fssa`, `plot.fts`