Keywords - Function groups - @ A B C D E F G H I J K L M N O P Q R S T U V W X Y Z

Library: graphic
See also: evalfd plotfd data2fd grpcp setmaskl data2fd

Quantlet: grfd
Description: creates graphical object from functional object fd

Usage: gfd = grfd(fd,evalarg,Lfd,col,art,thick)
Input:
fd list, functional (fd) object
evalarg n x 1 vector, grid for evaluation
Lfd list, scalar or vector of integers which indicate the order of derivatives. In the case of an LDO with constant coefficients Lfd must be a (r x 2) matrix, where the first column contains the coefficients, the second one the orders of derivatives. If you want to apply an LDO with variable coefficients Lfd must be an LDO object.
col scalar, color, parameter for setmaskl, default is 0
art scalar, art type, parameter for setmaskl, default is 1
thick scalar, art type, parameter for setmaskl, default is 2
Output:
gfd graphical object containing functions

Example:
library("fda")
library("graphic")
y = read("dailtemp.dat")
tvec=#(1:365)/365
fdb = createfdbasis("fourier", #(0,1),31,1)
fdtempf31=data2fd(y,tvec,fdb)
Tempdi=createdisplay(1,1)
grtempf=grfd(fdtempf31)
show(Tempdi,1,1,grtempf)

Result:
estimated temperature functions are displayed



Author: M. Benko 20040831 license MD*Tech
(C) MD*TECH Method and Data Technologies, 05.02.2006