Description Usage Arguments Details Value Note Author(s) References See Also Examples

The singular value decomposition (SVD) plot of Zhang et al. (2007) captures the changes in the singular columns as the number of curves gradually increases.

1 2 |

`object` |
An object of |

`order` |
Number of Singular Value Decomposition (SVD) components. The maximum order is 4. |

`plot` |
Is graphical display required? |

`plot.type` |
Plot functional time series or images? |

`mfrow` |
Grid of graphics. |

By using the SVD, Zhang et al. (2007) proposed a plot for visualizing patterns
of functional time series. They considered a set of curves as a two-way `(p * n)`

data matrix, where `p`

is the total number of covariates and `n`

is the total number of curves.

The main advantage of this dynamic plot is to visualize both column and row information of a two-way matrix simultaneously, relate the matrix to the corresponding curves, show local variations, and highlight interactions between columns and rows of a two-way matrix.

When `plot = TRUE`

, it returns a plot.

When `plot = FALSE`

, it returns the following:

`svds` |
A number of singular value decomposition ordered by the amount of explained variation. |

`reconstruction` |
Reconstruction of the original data using the SVD. |

`residual` |
Residual of the original data. |

MATLAB code is available at http://www.stat.purdue.edu/~lingsong/research/network/SVDmovie/index.html.

Using the animate package of Grahn(2011), a set of dynamic movies can be created to visualize the changes in singular rows and singular columns.

Han Lin Shang. Please, report bugs and suggestions to hanlin.shang@anu.edu.au

L. Zhang, J. Marron, H. Shen and Z. Zhu (2007) "Singular value decomposition and its visualization", *Journal of Computational and Graphical Statistics*, **16**(4), 833-854.

A. Grahn (2011) "The animate Package", http://ctan.unsw.edu.au/macros/latex/contrib/animate/animate.pdf.

1 2 | ```
SVDplot(ElNino_OISST_region_1and2)
SVDplot(ElNino_OISST_region_1and2, plot.type = "image")
``` |

```
Loading required package: MASS
Loading required package: pcaPP
Warning messages:
1: In fts(object$x, svdr[, , i]) :
Please assign column name for the data matrix.
2: In fts(object$x, svdr[, , i]) :
Please assign column name for the data matrix.
3: In fts(object$x, svdr[, , i]) :
Please assign column name for the data matrix.
4: In fts(object$x, svdrecon) :
Please assign column name for the data matrix.
```

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.