Computes transformed variables from Canonical Correlation Analysis using a dataframe or a stars object
Computes transformed variables from Canonical Correlation Analysis using a dataframe or a stars object
Computes Canonical Correlation Analysis (CCA) using 2 datasets. The autoplot function plots the output.
canonical_correlation(x1, x2,...)## S3 method for class 'data.frame'canonical_correlation(x1, x2,...)## S3 method for class 'stars'canonical_correlation(x1, x2,...)## S3 method for class 'cancor'autoplot(object, xlab ="Time",...)
Arguments
x1: The first dataframe or stars object.
x2: The second dataframe or stars objext. The dimensions of both datasets need to be the same.
...: Other arguments currently ignored.
object: For autoplot: the output of the function `cannonical_correlation'.
xlab: For autoplot: the xlabel to appear on CCA plot.