| Library: | graphic |
| See also: | fdamean plotfd grfd evalfd plotfdacov evalfdacov |
| Quantlet: | grfdacov | |
| Description: | creates a graphical object with cov surface |
| Usage: | fdavar = grfdacov(evalarg,fdobject) | |
| Input: | ||
| fdobject | list, functional (fd) object with n replications | |
| evalarg | m x 1 matrix for evaluation | |
| col | graphical object with cov 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=grfdacov(fdtempf31,grid(0,1/30,29))
plot3d(3,fdacovf)
setgopt(plot3disp,1,1,"title","Covariance Surface")
The cov function for temperature dataset is plotted, using 31 Fourier functions