Skip to contents

Top: the observed catalog column and its reconstruction (signatures per-channel residual (observed − reconstructed), red positive, blue negative.

Usage

plot_reconstruction_panel(
  counts,
  signatures,
  exposures,
  mode = c("share", "count")
)

Arguments

counts

m x 1 observed column (canonical order).

signatures

m x k dictionary (canonical order).

exposures

k x 1 exposure vector matching the dictionary columns (rownames = signature labels when available).

mode

"share" or "count".

Value

A ggplot object.