plot.pca {mixOmics}R Documentation

Show PCA output

Description

Show PCA output

Usage

## S3 method for class 'pca'
plot(
  x,
  ncomp = min(10, length(x$sdev)),
  type = "barplot",
  explained.var = TRUE,
  ...
)

Arguments

x

A pca object

ncomp

Integer, the number of components

type

Character, default "barplot" or any other type available in plot, as "l","b","p",..

explained.var

Logical, whether to plot the explained variance

...

Not used

Author(s)

Kim-Anh LĂȘ Cao, Florian Rohart, Leigh Coonan, Al J Abadi


[Package mixOmics version 6.12.2 Index]