Description Usage Arguments Details Value Author(s)
A plot composed of a grid of several subplots created by ruv_svdplot
1 2 3 |
Y.data |
The data matrix. Rows are observations and columns are features (e.g. genes). |
Y.space |
Either a data matrix of the same dimension as |
rowinfo |
A dataframe of information about the observations. Should have the same number of rows as Y. This information will be included in the ggplots, and can be used for setting aesthetics such as color. |
colinfo |
A dataframe of information about the observations. Should have a number of rows equal to the number of columns of Y. This information will be included in the ggplots, and can be used for setting aesthetics such as color. |
k |
A numeric vector of the singular vectors to be plotted. Typically integers, but fractional values can also be specified. For example, a value of 2.5 corresponds to the linear combination (singular vector 2) + (singular vector 3), rescaled to have unit length. Similarly, a value of 2.2 corresponds to the (rescaled) linear combination 8*(singular vector 2) + 2*(singular vector 3), and -2.2 corresponds to the (rescaled) linear combination 8*(singular vector 2) - 2*(singular vector 3). Note that the vectors defined by 2.2 and -2.8 are orthogonal to each other, as are those defined by 2.3 and -2.7, etc. |
Z |
Any variables to regress out of |
left.additions |
A list of additions to the ggplots of the left singular vectors. Can be used to set aesthetics such as color, etc. |
right.additions |
A list of additions to the ggplots of the right singular vectors. Can be used to set aesthetics such as color, etc. |
factor.labels |
The factor labels. |
Plots of the left singular vectors are shown on the left, and plots of the right singular vectors are shown on the right. The diagonal shows squares with side lengths proportional to the singular values.
A ggplot.
Johann Gagnon-Bartsch
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.