Library: | graphic |
See also: | grpcp grcontour3 grsunflower plotandrews |
Quantlet: | grandrews | |
Description: | Generates an Andrews plot. |
Usage: | bp = grandrews (x, nt {, col}) | |
Input: | ||
x | n x p matrix | |
nt | scalar number of gridpoints in [-pi,pi] | |
col | color | |
Output: | ||
bp | composed graphical object |
; load the library graphic library("graphic") ; load the swiss banknote data x = read("bank2") ; standardize x x =(x-mean(x))./sqrt(var(x)) ; select 20 observations x = x[90:110,] ; generate the andrews curves bp = grandrews(x, 50) ; show the andrews curves d = createdisplay(1,1) show(d, 1, 1, bp)
shows an Andrews plot