Description Usage Arguments Value Author(s) References See Also Examples
This function provides surface or image plot for singular value decomposition method. The plot includes several subplots for the following components: original data, cumulative approximation matrix, residual matrix, and several rank 1 SVD components.
1 2 |
data |
The input data matrix |
ncomp |
The number of components to calculate. The default value is 3. If the specified number is larger than the rank of the matrix, this option will automatically be set to the rank of the matrix minus one. When either irow and icol is specified as |
irow |
a logical number. If irow and icol both are |
icol |
a logical number. If irow and icol both are |
isurface |
Whether the surface plot will be generated. The default value is |
iimage |
Whether the image plot will be generated. The default value is |
xlab |
The |
ylab |
The |
zlab |
The |
... |
other related ploting options for |
The code will generate either a surface plot or an image plot for the individual SVD components, the original data, the approximation data and the residual data.
Lingsong Zhang (lingsong@purdue.edu)
See detailed explanation of this visualizaiton in \ Zhang, L., Marron, J. S., Shen, H. and Zhu, Z. (2007), Singular Value Decomposition and Its Visualization, Journal of Computational and Graphical Statistics.
See Also as svd
, wireframe
, and levelplot
.
1 2 3 4 5 6 7 8 9 |
Loading required package: lattice
[1] "Can not simultaneously generate image plots and surface plots"
[1] "Will only show the image plot"
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.