Skip to contents

Generates a scatter plot comparing the signal intensities of a positive fluorophore (f_pos) and a negative fluorophore (f_neg) across positive and negative control samples. This visualization helps assess the extent of spillover spreading in spectral flow cytometry.

Usage

vis_ss_scatter(ss_output)

Arguments

ss_output

A list returned by check_ss(), containing unmixed matrices B_pos and B_neg, fluorophore names f_pos and f_neg, and other spread metrics.

Value

A ggplot object showing a scatter plot of f_pos vs f_neg signal intensities, with points colored by sample group ("Stain" for positive, "Reference" for negative).

Details

The function extracts the relevant fluorophore channels from the unmixed matrices, combines them into a single data frame, and plots the signal distribution using ggplot2. This plot provides an intuitive view of how signal from f_pos may spread into f_neg, aiding in panel design and spillover diagnostics.

Examples

if (FALSE) { # \dontrun{
ss <- check_ss(f_pos = "FITC", f_neg = "PE", SSM_fluor = c("FITC", "PE"),
               A = A, custom_ssm_dir = "~/custom_ssm")
vis_ss_scatter(ss)
} # }