confusionHeatmap: Plot a confusion heatmap.

Description Usage Arguments Value Examples

Description

Plot a confusion heatmap.

Usage

1
2
confusionHeatmap(subject, query, logCounts = FALSE, rankCounts = FALSE,
  cluster = FALSE, ...)

Arguments

subject

Vector of reference cluster assignments.

query

Vector of cluster assignments for comparison with reference.

logCounts

Should counts in confusion matrix be log10(counts+1) transformed? Defaults to FALSE.

rankCounts

Should counts in confusion matrix be ranked? Defaults to FALSE.

cluster

Should rows and columns be hierarchically clustered? Defaults to FALSE.

...

Further parameters for pheatmap function.

Value

A matrix with possibly transformed counts.

Examples

1
2
3
4
5
a = c(rep("A", 1000), rep("B", 100), rep("C", 10))
b = c(rep("A", 500), rep("B", 595), rep("C", 15))
confusionHeatmap(a, b)
confusionHeatmap(a, b, logCounts = T)
confusionHeatmap(a, b, rankCounts = T)

clajusch/ClEvaR documentation built on May 9, 2019, 4:55 a.m.