confusionMatrix.Rd
This function creates a confusion matrix based on two value vectors.
confusionMatrix(i = NULL, j = NULL)
A character/numeric value vector to see concordance with j.
A character/numeric value vector to see concordance with i.
# Get Test ArchR Project
proj <- getTestProject()
# Overlap of Clusters and CellType
confusionMatrix(proj$Clusters, proj$CellType)
# Overlap of Cell Type and RNA Predict
confusionMatrix(proj$CellType, proj$predictedGroup_Un)