EOF2clim | R Documentation |
Converts a prinComp
output to a climatology of EOFs.
EOF2clim(prinCompObj, ind.var, member = 1L, n.eofs = 1L, rescale = TRUE)
prinCompObj |
PCA object |
ind.var |
index position of the target variable |
member |
Integer. index position of the member whose EOFs are to be displayed. Default to 1 (ignored if no members available) |
n.eofs |
Integer. Number of EOFs to be displayed (from 1 to |
rescale |
Logical flag. Default to |
A climatological grid. Note that EOFs are treated as members
J Bedia
## Not run:
require(climate4R.datasets)
data("NCEP_Iberia_hus850", "NCEP_Iberia_psl", "NCEP_Iberia_ta850")
multigrid <- makeMultiGrid(NCEP_Iberia_hus850, NCEP_Iberia_psl, NCEP_Iberia_ta850)
# In this example, we retain the PCs explaining the 99\
pca <- prinComp(multigrid, v.exp = c(.95,0.90,.90), keep.orig = FALSE)
require(visualizeR)
# Original EOF
EOF2clim(pca, ind.var = "psl") %>% spatialPlot(backdrop.theme = "coastline")
# Rescaled EOF
EOF2clim(pca, ind.var = "psl", rescale = FALSE) %>% spatialPlot(backdrop.theme = "coastline")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.