| Library: | graphic |
| See also: | svd grandrews grpcp grstar grsurface |
| Macro: | grbiplot | |
| Description: | Generates a graphical object containing the coordinates for the biplot of a given matrix. |
| Usage: | y = grbiplot(x,r,k) | |
| Input: | ||
| x | n x p matrix (n >= p) (n cases, p variables) | |
| r | number, rank of approximation (d <= p) | |
| k | number, 0 <= k <= 1 | |
| Output: | ||
| b | n+p x d matrix, containing the coordinates for the biplot | |
; loads the library graphic
library("graphic")
; reset the random generator
randomize(0)
; generate a normal distributed dataset with
; 5 rows and 3 columns
x = normal(5,3)
; produce a biplot in 2-space
b = grbiplot(x, 2, 0.5)
; create a display with one window
d = createdisplay(1,1)
; show the biplot in a display
show(d,1,1,b)
shows a biplot
| Library: | graphic |
| See also: | svd grandrews grpcp grstar grsurface |