plot_pca: Plot PCA models created by 'ropls::opls()'

View source: R/ropls_plots.R

plot_pcaR Documentation

Plot PCA models created by ropls::opls()

Description

Plot PCA models created by ropls::opls()

Usage

plot_pca(ropls_pca, group_var = NULL, annotate = c("caption",
  "subtitle", "none"))

Arguments

ropls_pca

a PCA model produced by ropls::opls()

group_var

a discrete variable used to plot groups

annotate

location on the plot to print model statistics

Value

a ggplot object

Examples

## Not run: 
plot_pca(pca, data$treatment)

## End(Not run)

Aariq/chemhelper documentation built on Feb. 24, 2023, 8:16 p.m.