Description Usage Arguments Value See Also
This function combines eigen vectors with the metadata, creates a scatter plot (ggplot2 graphics) between two eigenvectors and colors the points by a variable present in the metadata. The metadata and the matrix of the eigen vectors are matched by row names.
1 |
eigens |
a matrix with the eigen vectors |
metadata |
a data frame with the variable of interest (points color), must have row and column names |
pc.to.plot |
a numeric vector with two elements indicating which two eigen vectors should be used for a scatter plot |
variable |
a string indicating a name of the variable in the metadata by which the points of the scatter plot should be colored |
title |
string for the plot title. Default is NULL - no plot title |
ggplot2 plot object
data frame of the metadata merged with the matrix of the eigen vectors
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.