| wind | R Documentation |
Wind direction at 6:00 and 7:00 from June 1, 2003 to June 30, 2003, in radians, measured at a weather station in Texas coded as C28-1.
wind
A data frame with 30 rows and 2 variables:
Direction at 6:00 am.
Direction at 7:00 am.
The direction is measured in radians in [-\pi, \pi) with
-\pi/-\frac{\pi}{2}/0/\frac{\pi}{2}/\pi
representing the East/South/West/North/East directions.
Johnson, R. A. and Wehrly, T. (1977). Measures and models for angular correlation and angular-linear correlation. Journal of the Royal Statistical Society. Series B (Methodological), 39(2):222–229. https://www.jstor.org/stable/2984799
ridge_pca for the toroidal PCA of this dataset.
# Load data
data("wind")
plot(wind, xlab = expression(theta[1]), ylab = expression(theta[2]),
xlim = c(-pi, pi), ylim = c(-pi, pi), axes = FALSE)
sdetorus::torusAxis()
# Perform TR-PCA
fit <- ridge_pca(x = wind)
show_ridge_pca(fit)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.