Rotates the data in such a way that the correlation with the first
naxes
axes is maximized.
# S4 method for dimRedResult
maximize_correlation(object,
naxes = ncol(object@data@data), cor_method = "pearson")
A dimRedResult object
the number of axes to optimize for.
which correlation method to use
Methods that do not use eigenvector decomposition, like t-SNE often
do not align the data with axes according to the correlation of
variables with the data. maximize_correlation
uses the
optimx
package to rotate the data in such a
way that the original variables have maximum correlation with the
embedding axes.