Library: | graphic |
See also: | fdamean plotfd grfd evalfd data2fd |
Quantlet: | grfdacorr | |
Description: | creates a graphical object with corr surface |
Usage: | fdavar = grfdacorr(fdobject,evalarg,col) | |
Input: | ||
fdobject | list, functional (fd) object with n replications | |
evalarg | m x 1 matrix for evaluation | |
col | scalar, color | |
Output: | ||
gs | graphical object with correlation surface |
library("graphic") library("fda") y = read("dailtemp.dat") tvec=#(1:365)/365 fdb = createfdbasis("fourier", #(0,1),31,1) fdtempf31=data2fd(y,tvec,fdb) fdacovf=grfdacorr(fdtempf31,grid(0,1/30,29)) plot3d(3,fdacovf) setgopt(plot3disp,1,1,"title","Correlation Surface")
The corr surface for temperature dataset is plotted, using 31 Fourier functions