View source: R/pca.trajectory.R
PCA.trajectory | R Documentation |
Computes principal component analysis for trajectory data, e.g., storm
tracks. Add some reference and details about the method. The PCA is based
on svd
.
## S3 method for class 'trajectory'
PCA(
X,
...,
neofs = 20,
param = c("lon", "lat"),
anomaly = TRUE,
verbose = FALSE
)
X |
a 'trajectory' object |
... |
additional arguments |
neofs |
number of EOF patterns to include |
param |
parameters to include in principle component analysis. |
anomaly |
logical. If TRUE, subtract the first latitude/longitude from each trajectory. |
verbose |
TRUE - clutter the screen with messages |
# Simple EOF for annual mean SST:
data(imilast.M03)
x <- subset(imilast.M03,is=list(lon=c(-20,20),lat=c(50,70)))
# PCA of longitude and latitude
pca <- PCA(x,param=c('lon','lat'))
plot(pca)
map(pca,projection='latlon')
# latitude only
pca <- PCA(x,param=c('lat'))
plot(pca)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.