Learn R Programming

adaptiveGPCA (version 0.1.3)

plot.adaptivegpca: Plot an adaptivegpca object

Description

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

Usage

# S3 method for 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

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

Run the code above in your browser using DataLab