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

View source: R/CreateDesignPlot.R

CreateDesignPlotR Documentation

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.

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

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

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))))

functionaldata/tPACE documentation built on Aug. 16, 2022, 8:27 a.m.