ruv_cancorplot: RUV Canonical Correlation Plot

Description Usage Arguments Details Value Author(s)

Description

Canonical correlation plot

Usage

1
ruv_cancorplot(Y, X, ctl, W1 = NULL, W2 = NULL)

Arguments

Y

The data matrix. Rows are observations and columns are features (e.g. genes).

X

Factor(s) of interest. Can be a vector, factor, matrix, or dataframe. Must have the same length (or number of rows) as the number of row of Y.

ctl

Index of negative controls.

W1

Optional. The left singular vectors of Y. Can be included to speed up execution.

W2

Optional. The left singular vectors of Y[,ctl]. Can be included to speed up execution.

Details

Plots, as a function of k, the square of of the first canonical correlation of X and the first k left singular vectors of Y (and also, similarly, Y[,ctl]).

Value

A ggplot.

Author(s)

Johann Gagnon-Bartsch


ruv documentation built on Aug. 31, 2019, 1:04 a.m.