| Library: | plot |
| See also: | transform plotandrews plotstar plotsplom plotgt |
| Quantlet: | plot2 | |
| Description: | Plots the first two columns from a multivariate dataset. |
| Usage: | plot2 (x {, prep {, col}}) | |
| Input: | ||
| x | n x p matrix | |
| prep | scalar | |
| col | color | |
grc.prep.none (0) - no transformation (default)
grc.prep.standard (1) - standardize
grc.prep.zeroone (2) - to [0,1]
grc.prep.pcacov (3) - pca on cov matrix
grc.prep.pcacorr (4) - pca on corr matrix
grc.prep.sphere (5) - sphering
; loads the library plot
library ("plot")
; reads the swiss banknote data (200x6)
x = read("bank2")
; computes the principal components of x
plot2 (x, grc.prep.pcacov)
shows the first two principal components of x
| Library: | plot |
| See also: | transform plotandrews plotstar plotsplom plotgt |