CreateDesignPlot: Create design plots for functional data. See Yao, F., Müller,...

Description Usage Arguments Examples

View source: R/CreateDesignPlot.R

Description

Create design plots for functional data. See Yao, F., Müller, H.G., Wang, J.L. (2005). Functional data analysis for sparse longitudinal data. J. American Statistical Association 100, 577-590 for interpretation and usage of these plots. This function will open a new device as default.

Usage

1
2
3
4
5
6
7
8
CreateDesignPlot(
  Lt,
  obsGrid = NULL,
  isColorPlot = TRUE,
  noDiagonal = TRUE,
  addLegend = TRUE,
  ...
)

Arguments

Lt

a list of observed time points for functional data

obsGrid

a vector of sorted observed time points. Default are the unique time points in Lt.

isColorPlot

an option for colorful plot: TRUE: create color plot with color indicating counts FALSE: create black and white plot with dots indicating observed time pairs

noDiagonal

an option specifying plotting the diagonal design points: TRUE: remove diagonal time pairs FALSE: do not remove diagonal time pairs

addLegend

Logical, default TRUE

...

Other arguments passed into plot().

Examples

1
2
3
4
5
6
set.seed(1)
n <- 20
pts <- seq(0, 1, by=0.05)
sampWiener <- Wiener(n, pts)
sampWiener <- Sparsify(sampWiener, pts, 10)
CreateDesignPlot(sampWiener$Lt, sort(unique(unlist(sampWiener$Lt))))

Example output



fdapace documentation built on May 24, 2021, 9:06 a.m.