powered by
Plots a score vs. rank plot with a manually chosen rank cut-off for manual k selection.
checkRank(ranks, cutoff)
Returns a grob plotting the input cutoff on a plot of absolute eigenvector score vs. absolute rank order.
grob
cutoff
getPCRanks output data frame
integer, rank value to check
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
Run the code above in your browser using DataLab