plot_cca_loadings: Title: Plot regularized canonical correlation analysis...

View source: R/plot_cca_loadings.R

plot_cca_loadingsR Documentation

Title: Plot regularized canonical correlation analysis loadings edited from Estelle's https://github.com/estelleyao0530/Canonical_Correlation_Function

Description

Input Projected loading score from matrix A & B run.cca output WGCNA modules for matrix A & B

Usage

plot_cca_loadings(projx, projy, modulecolor, modulecolor2, number_plot, name)

Arguments

projx

file, from run_cca output; matrix A loadings

projy

file, from run_cca output; matrix B loadings

modulecolor

file, wgcna module; variable cluster specification for matrix A

modulecolor2

file, wgcna module; variable cluster specification for matrix B

number_plot

int, numbers of component to plot

name

string, name of output files

Details

Output: Scatter plots from specified number of components for matrix A Scatter plots from specified number of components for matrix B

Note: 1) projected loading avoids collinearity of loadings 2) variables (drugs, genes) are colored with wgcna modules; a two column dataframe - variables in col1, modulecolor in col2


graeberlab-ucla/glab.library documentation built on Oct. 28, 2024, 10:48 a.m.