R/plotcim.R

plotcim <- function (matX, matY, cexCol = 0.5, cexRow = 1) 
{
  labelY <- colnames(matY)
  mat.sim <- matrix(NA, ncol = dim(matX)[2], nrow = length(labelY))
  for (i in 1:dim(matX)[2]) {
    for (j in 1:length(labelY)) {
      mat.sim[j, i] <- cor(matX[, i], matY[, j])
    }
  }
  cim(mat.sim, row.names = labelY, col.names = colnames(matX), col.cex = cexCol, 
      row.cex = cexRow)
}

Try the sgPLS package in your browser

Any scripts or data that you put into this service are public.

sgPLS documentation built on Oct. 5, 2023, 5:06 p.m.