find_pc_curve_elbow: Identify and plot the elbow point of the PC curve

View source: R/find_pc_curve_elbow.R

find_pc_curve_elbowR Documentation

Identify and plot the elbow point of the PC curve

Description

Identify and plot the elbow point of the PC curve

Usage

find_pc_curve_elbow(
  object,
  method = 1,
  maxPC = 50,
  plot = TRUE,
  name = NA,
  title = "Importance of PCs",
  width = 6,
  height = 4
)

Arguments

object

Matrix-like object with features (e.g. genes) as rows and samples as columns.

method

1 or 2. 1 = use find_curve_elbow, 2 = use findElbowPoint, default is 1.

maxPC

maximum PCs to be considered. Default is 50.

plot

Logical; should plot be generated?

name

Name of file to create. Set to NA to plot to screen instead of to file.

title

figure title.

width

figure width.

height

figure height.

Value

the PC number at elbow point.


jdreyf/jdcbioinfo documentation built on Feb. 12, 2025, 4:30 p.m.