plotBiplot.pca: PCA biplot

View source: R/pca.R

plotBiplot.pcaR Documentation

PCA biplot

Description

Shows a biplot for selected components.

Usage

## S3 method for class 'pca'
plotBiplot(
  obj,
  comp = c(1, 2),
  pch = c(16, NA),
  col = mdaplot.getColors(2),
  main = "Biplot",
  lty = 1,
  lwd = 1,
  show.labels = FALSE,
  show.axes = TRUE,
  show.excluded = FALSE,
  lab.col = adjustcolor(col, alpha.f = 0.5),
  ...
)

Arguments

obj

a PCA model (object of class pca)

comp

a value or vector with several values - number of components to show the plot for

pch

a vector with two values - markers for scores and loadings

col

a vector with two colors for scores and loadings

main

main title for the plot

lty

line type for loadings

lwd

line width for loadings

show.labels

logical, show or not labels for the plot objects

show.axes

logical, show or not a axes lines crossing origin (0,0)

show.excluded

logical, show or hide rows marked as excluded (attribute 'exclrows')

lab.col

a vector with two colors for scores and loadings labels

...

other plot parameters (see mdaplotg for details)


mdatools documentation built on Sept. 11, 2024, 7:59 p.m.