plot_pca_result | R Documentation |
Plot PCA.
plot_pca_result(
pca_result,
pheno,
batch_name,
classification_name,
pc_x = 1,
pc_y = 2,
batch_label = "Batch",
classification_label = "Classification",
density_lwd = 0.6,
plot_title = "PCA",
plot_subtitle = "PCA subtitle"
)
pca_result |
An object of pca_result class. |
pheno |
the |
batch_name |
the column name of batch in the phenotype |
classification_name |
the column name of classification in the phenotype
|
pc_x |
an integer of PC on x axis. Default to 1. |
pc_y |
an integer of PC on y axis. Default to 2. |
batch_label |
a character describe the ggplot2 label for batch. Default to "Batch". |
classification_label |
a character describe the ggplot2 label for classification. Default to "Classification". |
Inspired by PLSDAbatch
package.
A ggplot
object.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.