plot_PCA: Plot the result of a PCA

Description Usage Arguments Value See Also Examples

View source: R/pca.R

Description

This function creates a plot of the outcome of a Principal Component Analysis (PCA) using the package ggplot2.

Usage

1

Arguments

x

The object returned by the function compute_PCA.

Value

A ggplot object.

See Also

compute_PCA figure_PCA

Examples

1
2
3
4
PCA_C1_males <- compute_PCA(males[males$Cohort == 'C1', ])
PCA_C2_males <- compute_PCA(males[males$Cohort == 'C2', ])
plot_PCA(PCA_C1_males)
plot_PCA(PCA_C2_males)

courtiol/matingRhinos documentation built on Nov. 22, 2019, 11:10 p.m.