Skip to contents

Computes and visualizes the Jaccard similarity of sample usage across iterations for a given role (e.g., "test", "train", or "inference").

Usage

plot_jaccard_heatmap(
  data,
  role = "test",
  row_names = NULL,
  title = NULL,
  file = NULL,
  width = 8,
  height = 8
)

Arguments

data

A data.frame with columns sample_id, role, and iteration.

role

A string, one of "test", "train", or "inference".

title

Optional title for the heatmap.

file

Optional filename to save the heatmap (pdf, png, jpeg, or tiff).

width,

height Width and height of the saved file (in inches).

Value

Invisibly returns the Jaccard matrix (numeric matrix).