Creates a covariance surface plot based on the results from FPCA() or FPCder().
This function will open a new device if not instructed otherwise.
CreateCovPlot( fpcaObj, covPlotType = "Fitted", isInteractive = FALSE, colSpectrum = NULL, ... )
fpcaObj |
returned object from FPCA(). |
covPlotType |
a string specifying the type of covariance surface to be plotted: 'Smoothed': plot the smoothed cov surface 'Fitted': plot the fitted cov surface |
isInteractive |
an option for interactive plot: TRUE: interactive plot; FALSE: printable plot |
colSpectrum |
character vector to be use as input in the 'colorRampPalette' function defining the colouring scheme (default: c('blue','red')) |
... |
other arguments passed into persp3d, persp3D, plot3d or points3D for plotting options |
set.seed(1) n <- 20 pts <- seq(0, 1, by=0.05) sampWiener <- Wiener(n, pts) sampWiener <- Sparsify(sampWiener, pts, 10) res <- FPCA(sampWiener$Ly, sampWiener$Lt, list(dataType='Sparse', error=FALSE, kernel='epan', verbose=TRUE)) CreateCovPlot(res)
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.