This function creates a confusion matrix based on two value vectors.

confusionMatrix(i = NULL, j = NULL)

Arguments

i

A character/numeric value vector to see concordance with j.

j

A character/numeric value vector to see concordance with i.

Examples


# 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)