plot PCA results.

draw_specific_pca(pca, component_1, component_2, legend = TRUE)

Arguments

pca

PCA data obtained from compute_pca function.

component_1

First component to plot

component_2

Second component to plot

legend

Display legend on the plot.

Examples

data("abiotic_stresses")
pca <- compute_pca(abiotic_stresses$normalized_counts)
draw_specific_pca(pca, 1, 2)