"plot"(x, type = c("values", "vectors", "paired", "series", "wcor"), ..., vectors = c("eigen", "factor"), plot.contrib = TRUE, numvalues = nsigma(x), numvectors = min(nsigma(x), 10), idx = 1:numvectors, idy, groups)
reconstruct
)
Additional (non-standard) graphical parameters which can be transfered via ...:
type
argument to function panel.xyplot
.
colorRamp
)
z
,
a list of such vectors
or a character string.
If a list is given, corresponding list element (with recycling) will be used for each
plot panel.
For character strings, values 'free' and 'same' are allowed: 'free' means
special breakpoints' vectors (will be evaluated automatically, see description of cuts
argument in 'Details') for each component. 'same' means one breakpoints' vector for all
component (will be evaluated automatically too)
z
would be divided into.
# Decompose 'co2' series with default parameters
s <- ssa(co2)
# Plot the eigenvalues
plot(s, type = "values")
# Plot W-cor matrix for first 10 reconstructed components
plot(s, type = "wcor", groups = 1:10)
# Plot the paired plot for first 6 eigenvectors
plot(s, type = "paired", idx = 1:6)
# Plot eigenvectors for first 6 components
plot(s, type = "vectors", idx = 1:6)
# Plot the first 4 reconstructed components
plot(s, type = "series", groups = list(1:4))
# Plot the eigenvalues by points only
plot(s, type = "values", plot.type = "p")
# Artificial image for 2dSSA
mx <- outer(1:50, 1:50,
function(i, j) sin(2*pi * i/17) * cos(2*pi * j/7) + exp(i/25 - j/20)) +
rnorm(50^2, sd = 0.1)
# Decompose 'mx' with default parameters
s <- ssa(mx, kind = "2d-ssa")
# Plot the eigenvalues
plot(s, type = "values")
# Plot eigenvectors for first 6 components
plot(s, type = "vectors", idx = 1:6,
ref = TRUE, at = "same", cuts = 50,
plot.contrib = TRUE, symmetric = TRUE)
# Plot factor vectors for first 6 components
plot(s, type = "vectors", vectors = "factor", idx = 1:6,
ref = TRUE, at = "same", cuts = 50,
plot.contrib = TRUE, symmetric = TRUE)
# Plot wcor for first 12 components
plot(s, type = "wcor", groups = 1:12, grid = c(2, 6))
# 3D-SSA example (2D-MSSA)
data(Barbara)
ss <- ssa(Barbara, L = c(50, 50, 1))
plot(ss, type = "values")
plot(ss, type = "vectors", idx = 1:12, slice = list(k = 1),
cuts = 50, plot.contrib = TRUE)
plot(ss, type = "vectors", idx = 1:12, slice = list(k = 1, i = 1))
plot(ss, type = "vectors", vectors = "factor", idx = 1:12, slice = list(k = 3),
cuts = 50, plot.contrib = FALSE)
Run the code above in your browser using DataLab