Skip to contents

Create a heatmap showing cell-cell communication strength between clusters.

Usage

PlotHeatmap(
  x,
  metric = c("count", "mean", "sum", "specificity"),
  cluster_order = NULL,
  show_values = TRUE,
  colors = NULL,
  title = NULL,
  ...
)

Arguments

x

NOVAResult or NOVADiffResult object

metric

Metric to display: "count" (number of edges), "mean" (expression), "sum" (total expression), or "specificity"

cluster_order

Custom order of clusters (default: alphabetical)

show_values

Display values in cells

colors

Color palette (function or vector)

title

Plot title

...

Additional arguments passed to ComplexHeatmap::Heatmap

Value

ComplexHeatmap object

Examples

if (FALSE) { # \dontrun{
PlotHeatmap(result)
PlotHeatmap(result, metric = "specificity")
} # }