Compute low-rank projections, pairwise correlations, and RV coefficient, and visualize the relationships using a heatmap and pairs plot.

visualize_lowrank_relationships(
  X1,
  X2,
  V1,
  V2,
  plot_title,
  nm1 = "X1",
  nm2 = "X2"
)

Arguments

X1

First matrix

X2

Second matrix

V1

First feature matrix

V2

Second feature matrix

plot_title

Title of the plot (optional)

nm1

Name of the first matrix (default: "X1")

nm2

Name of the second matrix (default: "X2")

Value

A list containing the heatmap, pairs plot, correlation matrix, and RV coefficient

Examples

set.seed(123)
X1 <- matrix(rnorm(100), nrow = 10, ncol = 10)
X2 <- matrix(rnorm(100), nrow = 10, ncol = 10)
V1 <- matrix(rnorm(100), nrow = 10, ncol = 10)
V2 <- matrix(rnorm(100), nrow = 10, ncol = 10)
# result <- visualize_lowrank_relationships(X1, X2, V1, V2)