plot.dfrr: Plot a dfrr fit

Description Usage Arguments Details Examples

View source: R/plot.dfrr.R

Description

Plot the regression coefficients, principal components, kernel function and residuals of a dfrr-object.

Usage

1
2
## S3 method for class 'dfrr'
plot(x, plot.kernel = TRUE, ...)

Arguments

x

the output of the function fitted.dfrr

plot.kernel

a boolean indicating whether plots the kernel function or not. ggplot2-package and plotly-package is required to plot contour and 3d surface of kernel function.

...

graphical parameters passed to plot.coef.dfrr

Details

The contour plot of the kernel function is produced if the package ggplot2 is installed. Plotting the 3d surface of the kernel function is also depends on the package plotly. To produce the qq-plot, the package car must be installed.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
set.seed(2000)
N<-50;M<-24

X<-rnorm(N,mean=0)
time<-seq(0,1,length.out=M)
Y<-simulate_simple_dfrr(beta0=function(t){cos(pi*t+pi)},
                        beta1=function(t){2*t},
                        X=X,time=time)
dfrr_fit<-dfrr(Y~X,yind=time)

plot(dfrr_fit)

asgari-fatemeh/dfrr documentation built on Aug. 12, 2020, 3:06 a.m.