confusionMatrix | R Documentation |
This function creates a confusion matrix based on two value vectors.
confusionMatrix(i = NULL, j = NULL)
i |
A character/numeric value vector to see concordance with j. |
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.