Learn R Programming

wq (version 0.4.3)

eofPlot: Plot results of an EOF analysis

Description

Plots the rotated empirical orthogonal functions or amplitude time series resulting from eof.

Usage

eofPlot(x, type = c('coef', 'amp'), rev = FALSE, ord = FALSE)

Arguments

Value

A plot of the EOF coefficients or amplitudes (and corresponding object of class ggplot).

Rdversion

1.1

Details

When the columns of the original data have a natural order, such as stations along a transect or months of the year, there may be no need to reorder the EOF coefficients. But if there is no natural order, such as when columns represents disparate sites around the world, the plot can be more informative if coefficients are ordered by size (ord = TRUE).

Coefficients and amplitudes for a given EOF may be more easily interpreted if rev = TRUE, because the sign of the first coefficient is arbitrarily determined and all the other signs follow from that choice.

The vertical guide lines at 0.2 and 0.35 are meant to reflect the Monte Carlo studies of Richman and Gong (1999): For investigators who do not wish to reproduce a part of the Monte Carlo analysis for their research, the most general rule of thumb is that if there is a sufficient sample size, a correlation-based PC loading value of [plus or minus] 0.2-0.35 will likely suffice to separate the hyperplane out... Sufficient sample size in this case refers to n > 50.

References

Richman, M. and Gong, X. (1999) Relationships between the definition of the hyperplane width to the fidelity of principal component loading patterns. Journal of Climate 12, 1557--1576.

See Also

eof

Examples

Run this code
# Create an annual matrix time series
chla1 <- aggregate(sfbayChla, 1, mean, na.rm = TRUE)
chla1 <- chla1[, 1:12]  # remove stations with missing years

# eofNum (see examples) suggests n = 1
e1 <- eof(chla1, n = 1)
eofPlot(e1, type = 'coef')
eofPlot(e1, type = 'amp')

Run the code above in your browser using DataLab