#' Rotate distance matrix (internal function rCOSA)
#'
#' @param xx distance matrix
#'
#' @return
#' Rotated matrix in which the first column has the largest eigen value etc.
#'
rotat <- function(xx) {
rot <- eigen((t(xx)) %*% xx)
rot <- rot[[2]]
xx <- xx %*% rot
return(xx)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.