pca_biplot: PCA biplot

Description Usage Arguments Examples

View source: R/pca.R

Description

Shows a PCA biplot.

Usage

1
2
pca_biplot(dataset, pca.result, cex = 0.8, legend.cex = 0.8, 
x.colors = 1, inset = c(0, 0), legend.place = "topright", ...)

Arguments

dataset

list representing the dataset from a metabolomics experiment.

pca.result

prcomp object with the PCA results.

cex

cex value.

legend.cex

cex value of the legend.

x.colors

colors of a metadata's variable.

inset

inset parameter of legend function.

legend.place

legend place.

...

additional parameters passed to biplot function.

Examples

1
2
3
4
5
  ## Example of a PCA biplot
  library(specmine.datasets)
  data(cachexia)
  pca.result = pca_analysis_dataset(cachexia)
  pca_biplot(cachexia, pca.result, cex = 0.8)

specmine documentation built on Sept. 21, 2021, 5:06 p.m.