ruv_cancorplot {ruv} | R Documentation |
RUV Canonical Correlation Plot
Description
Canonical correlation plot
Usage
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 |
W2 |
Optional. The left singular vectors of |
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
[Package ruv version 0.9.7.1 Index]