fdaMethods: Methods for Functional Data Fit

Description Usage Arguments Examples

Description

These are the plot and print methods which are associated with the objects of class "myfda".

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
## S3 method for class 'myfda'
plot(x, which=NULL, addpoints=TRUE, npoints=100,
 add=FALSE, ...)

## S3 method for class 'myfda'
print(x, ...)

## S3 method for class 'myfdaCV'
print(x, digits=4, conv=FALSE, ...)

## S3 method for class 'myfda'
x[i=NULL]

Arguments

x

Object of class "myfda" (see coefEst).

which

Which curve shall we plot

addpoints

If TRUE and which is not null, observations are added to the graph

npoints

The number of points used to plot the curves

digits

The number of digits to be printed

conv

Shall the information about convergence be printed

add

If TRUE, the line associated with "which" is added to the existing graph

i

The selection index.

...

Other argument that is passed to the plot or print methods

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
data(GDPv56) 
t <- seq(0,1,len=nrow(GDPv56))

## Linear estimation
res <- coefEst(y=GDPv56, t=t, lam=0.003, k=15)
print(res)
plot(res)
plot(res,which=1:3)

##  Using the operator []
plot(res[1:4])

res2 <- coefEst(y=GDPv56, t=t, lam=0.3, k=15)
plot(res,which=1)
plot(res2,which=1, add=TRUE, col=2, lty=3)

funcreg documentation built on May 2, 2019, 5:45 p.m.

Related to fdaMethods in funcreg...