plot.adaptivegpca: Plot an adaptivegpca object

View source: R/adaptivegpca-package.R

plot.adaptivegpcaR Documentation

Plot an adaptivegpca object

Description

Plots the output from adaptivegpca, either a scree plot, the samples, or the variables.

Usage

## S3 method for class 'adaptivegpca'
plot(x, type = c("scree", "samples", "variables"),
  axes = c(1, 2), ...)

Arguments

x

An object of class adaptivegpca

type

What type of plot to make. scree will make a scree plot showing the eigenvalues, samples will plot the samples, and variables will plot the variables.

axes

Which axes to plot.

...

Not used.

Examples

data(AntibioticSmall)
out.agpca = adaptivegpca(AntibioticSmall$X, AntibioticSmall$Q, k = 2)
plot(out.agpca)
plot(out.agpca, type = "samples")
plot(out.agpca, type = "variables")

adaptiveGPCA documentation built on Dec. 8, 2022, 5:12 p.m.