Calculate the principal component (PC) cutoff using a heuristic approach.

plotPCElbow(object, ...)

# S4 method for Seurat
plotPCElbow(object, minPct = 0.01, maxCumPct = 0.9)

# S4 method for cell_data_set
plotPCElbow(object, minPct = 0.01,
  maxCumPct = 0.9)

Arguments

object

Object.

minPct

numeric(1) (0-1). Minimum percent standard deviation.

maxCumPct

numeric(1) (0-1). Maximum cumulative percen standard deviation.

...

Additional arguments.

Value

ggplot. Elbow point is saved in attr(object, "elbow").

Details

Automatically return the smallest number of PCs that match the minSD, minPct, and maxCumPct cutoffs.

Note

Updated 2019-08-02.

See also

Examples

data( Seurat, cell_data_set, package = "acidtest" ) ## Seurat ==== object <- Seurat plotPCElbow(object)
## cell_data_set ==== object <- cell_data_set plotPCElbow(object)