Learn R Programming

specmine (version 3.1.6)

pca_biplot: PCA biplot

Description

Shows a PCA biplot.

Usage

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

Run this code
# NOT RUN {
  ## Example of a PCA biplot
  library(specmine.datasets)
  data(cachexia)
  pca.result = pca_analysis_dataset(cachexia)
  pca_biplot(cachexia, pca.result, cex = 0.8)
# }

Run the code above in your browser using DataLab