Description Usage Arguments Value
plot PCA with given normalized count matrix and sample annotation
1 2 3 4 5 6 7 8 9 |
tpm |
named count matrix/data.frame with column name representing sample names and row name representing gene name/id (required) |
col_anno |
the column (sample) annotation data.frame with row name match the tpm matrix column name, column name represents the factor to label for PCA plot (required) |
color_col |
a column name from col_anno that be color aesthetics for PCA (required) |
shape_col |
a column name from col_anno that be shape aesthetics for PCA. Default = NULL |
text_col |
a column name from col_anno that be text label aesthetics for PCA. Default = NULL |
point_size |
sample point size. Default = 5 |
plot_file |
save file to pdf. Default = "" |
a list of 4 plots, PCA matrix and PC variance summary. list(pc=pc, pca_summary=pca_summary, plots=plots)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.