Single PCA plot function
plotPCAbiplot(
prcomp,
loading = FALSE,
n_loadings = 10,
dims = c(1, 2),
group_by = NULL
)
prcomp object generated by stats::prcomp()
logical, if to plot and label loadings of PCA, default 'FALSE'
num, top n loadings to plot; or a vector of gene IDs;
only work when loading = TRUE
a vector of 2 elements, specifying PCs to plot
character, specify the column to be grouped and colored, default NULL
ggplot of PCA