Skip to contents

Visualize confusion matrix as a heatmap

Usage

plot_confusion_heatmap(
  result,
  normalized = "R1",
  title = NULL,
  colors = c("white", "gray20"),
  show_values = TRUE,
  text_size = 3
)

Arguments

result

scClustEval result object, or a confusion matrix directly

normalized

Which matrix to plot: "raw", "R1", or "R2"

title

Plot title

colors

Color gradient (low to high)

show_values

Show values in cells

text_size

Size of text in cells

Value

A ggplot2 object