checkRank: Check rank cut-off values manually.

View source: R/checkRank.R

checkRankR Documentation

Check rank cut-off values manually.

Description

Plots a score vs. rank plot with a manually chosen rank cut-off for manual k selection.

Usage

checkRank(ranks, cutoff)

Arguments

ranks

getPCRanks output data frame

cutoff

integer, rank value to check

Value

Returns a grob plotting the input cutoff on a plot of absolute eigenvector score vs. absolute rank order.

Examples

ranks <- getPCRanks(eigen, IDs = c("trt", "ctl"), PC = 1)
test_50 <- checkRank(ranks, 50) # set cut-off to 50
test_500 <- checkRank(ranks, 500) # set cut-off to 500

PCBS documentation built on Sept. 11, 2024, 6:11 p.m.

Related to checkRank in PCBS...