Make a matrix plot of PCA with top PCs
pca_matrix_plot_init(
data,
features = "all",
group_by = NULL,
scale = TRUE,
n = 4,
loading = FALSE,
n_loadings = 10,
gene_id = "SYMBOL"
)
expression matrix
vector of gene symbols or 'all', specify the genes used for PCA, default 'all'
character, specify the column to be grouped and colored, default NULL
logical, if to scale data for PCA, default TRUE
num, specify top n PCs to plot
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
character, specify which column of IDs used to calculate TPM, also indicate the ID type of expression data's rowname, could be one of 'ENSEMBL', 'SYMBOL', 'ENTREZ'..., default 'SYMBOL'
matrix plot of PCA