plotPCA: Plot PCA

plotPCAR Documentation

Plot PCA

Description

Plots PCA results in a scatterplot.

Usage

plotPCA(object, ...)

## S4 method for signature 'DimRed'
plotPCA(
  object,
  n_dims = 2,
  alpha_by = NULL,
  color_by = NULL,
  shape_by = NULL,
  size_by = NULL,
  pt_alpha = 0.9,
  pt_color = "black",
  pt_fill = "black",
  pt_shape = 19,
  pt_size = 1,
  color_aes = "color",
  clrp = "milo",
  clrp_adjust = NULL,
  clrsp = "inferno",
  ...
)

## S4 method for signature 'Analysis'
plotPCA(
  object,
  n_dims = 2,
  alpha_by = NULL,
  color_by = NULL,
  shape_by = NULL,
  size_by = NULL,
  pt_alpha = 0.9,
  pt_color = "black",
  pt_fill = "black",
  pt_shape = 19,
  pt_size = 1,
  color_aes = "color",
  clrp = "milo",
  clrp_adjust = NULL,
  clrsp = "inferno",
  ...
)

Arguments

object

Any object for whose class a method has been defined.

n_dims

Numeric value. Integer that indicates the number of principal component vectors that are plotted.

clrp

Character value. Specifies the color palette to be used to represent groups of discrete variables. Run validColorPalettes() to obtain valid input options.

Value

A ggplot.


kueckelj/confuns documentation built on June 28, 2024, 9:19 a.m.