Description Usage Arguments Value Examples
It provides graphical representations for MFPCA: smoothed data plots, scores plots, variation of the mean curve and eigenfunction plots.
1 2 |
x |
An object produced by mfpca function. |
nharm |
The number of harmonics for which you want graphical representations, default value is 3. |
threshold |
The threshold of proportion of variance that stop plotting, default value is 0.05. |
... |
Some additional parameters. |
Data plot |
Plot of all smooth curves for each functional variable. |
Scores plots |
Plot of curves coordinates on the number of eigenfunctions/harmonics selected and depending on the threshold choosen. |
Mean curve plots |
Plot of variation of the mean curve. Variations are estimated based on the mean values with addition (red) and substraction (blue) of each eigenfunction. |
Eigenfunction plots |
visualization of each eigenfunction/harmonic selected and depending on the threshold choosen. |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | ####Univariate case: "Canadian temperature" data (Ramsey & Silverman)
daybasis65 <- create.fourier.basis(c(0, 365), nbasis=65, period=365)
daytempfd <- smooth.basis(day.5, CanadianWeather$dailyAv[,,"Temperature.C"], daybasis65,
fdnames=list("Day", "Station", "Deg C"))$fd
res.pca<-mfpca(daytempfd)
plot(res.pca,nharm=4)
####Multivariate case: "Canadian temperature" data (Ramsey & Silverman)
daybasis65 <- create.fourier.basis(c(0, 365), nbasis=65, period=365)
daytempfd <- smooth.basis(day.5, CanadianWeather$dailyAv[,,"Temperature.C"], daybasis65,
fdnames=list("Day", "Station", "Deg C"))$fd
dayprecfd<-smooth.basis(day.5, CanadianWeather$dailyAv[,,"Precipitation.mm"], daybasis65,
fdnames=list("Day", "Station", "Mm"))$fd
res.pca<-mfpca(list(daytempfd,dayprecfd))
plot(res.pca,nharm=4)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.