Beyond Tandem Analysis: Joint Dimension Reduction and Clustering in R