Skip to contents

Generate a boxplot of MFI (median fluorescence intensity) for Grad-CAM feature cells, other Timer+ cells, and Timer negative cells following inverseGradCAM.

Usage

plotGradCAMFeatureMFI(
  x,
  feature_vector,
  group = NULL,
  select = FALSE,
  variables = NULL,
  title = "GradCAM Feature Cells"
)

Arguments

x

A `TockyPrepData` object containing the original flow cytometry data.

feature_vector

A vector output from inverseGradCAM.

group

A character vector specifying the group(s) to use for analysis. If NULL, all groups are used.

select

A logical indicating whether to allow interactive selection of variables for analysis.

variables

A character vector specifying the variables to analyze. Only used if `select` is TRUE.

title

A character for the title of plot.

Value

A list containing the following elements: * `plot`: A ggplot object of the boxplot. * `summary_data`: A data frame containing the summarized data used to create the plot.

Examples

if (FALSE) { # \dontrun{
  feature_matrix <- read.csv('heatmap.csv')
plotGradCAMFeatureMFI(x, feature_matrix)
} # }