pc_plot: Graphical representation of the PC on the main principal...

View source: R/pc_plot.R

pc_plotR Documentation

Graphical representation of the PC on the main principal plans

Description

This function plots the PC values with the appropriate axis and percentage values on the labels.

Usage

pc_plot(pca, pc, n = c(1, 2))

Arguments

pca

list containing the vertical modes used (computed with the function fpca).

pc

The principal components of the profiles (computed with the function proj).

n

vector of the PC to plot, it can be of length 2 or 3. Default is n = c(1,2)

Value

Plot the main PC with their corresponding variance on the axis labels.

#' @author Etienne Pauthenet <etienne.pauthenet@gmail.com>, David Nerini <david.nerini@univ-amu.fr>, Fabien Roquet <fabien.roquet@gu.se>

References

Pauthenet et al. (2017) A linear decomposition of the Southern Ocean thermohaline structure. Journal of Physical Oceanography, http://dx.doi.org/10.1175/JPO-D-16-0083.1

Ramsay, J. O., and B. W. Silverman, 2005: Functional Data Analysis. 2nd Edition Springer, 426 pp., Isbn : 038740080X.

See Also

bspl for bsplines fit on T-S profiles, fpca for functional principal component analysis of T-S profiles, proj for computing Principal Components, reco for reconstructing profiles with less modes.


EPauthenet/fda.oce documentation built on April 18, 2024, 7:56 a.m.