pca_gplot_scale | R Documentation |
Plots PCA given a matrix with column names of variables
pca_gplot_scale(matrix, sep, nameindex, dim1, dim2)
matrix |
Data matrix with column names |
sep |
Sep character in sample name |
nameindex |
Part of name that you want to plot |
dim1 |
PC component on x-axis |
dim2 |
PC component on y-axis |
Function given to me by Deb Sen, credit goes to Kevin Bi
a ggplot object
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.