View source: R/CreateDesignPlot.R
CreateDesignPlot | R 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.
CreateDesignPlot(
Lt,
obsGrid = NULL,
isColorPlot = TRUE,
noDiagonal = TRUE,
addLegend = TRUE,
...
)
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 |
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))))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.