Learn R Programming

Rssa (version 0.8.2)

plot: Plot SSA object

Description

This function plots various sorts of figures related to the SSA method.

Usage

## S3 method for class 'ssa':
plot(x,
     type = c("values", "vectors", "paired", "series"),
     ...,
     plot.contrib = TRUE,
     numvalues = nlambda(x),
     numvectors = min(nlambda(x), 10),
     idx = 1:numvectors,
     idy,
     groups)

Arguments

x
SSA object holding the decomposition.
type
Type of the plot (see 'Details' for more information).
...
Arguments to be passed to methods, such as graphical parameters.
plot.contrib
logical. If 'TRUE' (the default), the contribution of the component to the total variance is plotted.
numvalues
Number of eigenvalues to plot (for type = 'values').
numvectors
Total number of eigenvectors to plot (for type = 'vectors').
idx
Indices of eigenvectors to plot (for type = 'vectors').
idy
Second set of indices of eigenvectors to plot (for type = 'paired').
groups
Grouping used for the decomposition (see reconstruct.ssa).

Details

This function is the single entry to various plots of SSA objects. Right now this includes: [object Object],[object Object],[object Object],[object Object]

Examples

Run this code
# Decompose 'co2' series with default parameters
s <- new.ssa(co2)
# Plot the eigenvalues
plot(s, type = "values")
# Plot the first 4 reconstructed components
plot(s, type = "series", groups = list(1:4))

Run the code above in your browser using DataLab