Skip to contents

Visualize PCA Results

Usage

plotPCA(data, plot_3d = FALSE, color_by = NULL, marker_size = 5, ...)

Arguments

data

An object of class CygnusObject containing PCA results.

plot_3d

Logical value indicating whether to plot in 3D. Default is FALSE.

color_by

Character string specifying metadata column to color by. Default is NULL (no coloring).

marker_size

Size of the points

...

Additional arguments for the plot function

Value

A plot of the PCA results.