Skip to contents

plot_frequency_barplot() plots cell population frequencies for each level in group_var as stacked barplot.

Usage

plot_frequency_barplot(
  fcd = condor,
  cluster_slot,
  cluster_var,
  group_var,
  facet_var = NULL,
  color_palette = cluster_palette,
  title = "Frequency"
)

Arguments

fcd

flow cytometry data set, that has been subjected to clustering or cell type label prediction with cyCONDOR

cluster_slot

string specifying which clustering slot to use to find variable specified in cluster_var.

cluster_var

string specifying variable name in cluster_slot that identifies cell population labels to be used (e.g. clusters, metaclusters or predicted labels).

group_var

string indicating variable name in cell_anno that defines grouping variable to be used (x-axis), e.g. group or sample ID.

facet_var

(optional) string indicating variable name in cell_anno that should be used to group levels in group_var via faceting.

color_palette

vector of colors to be used to fill bar chart plots

title

title of the plot, default is "Frequency"

Value

plot_frequency_barplot returns a plot showing cell population frequencies for each level in group_var. The plot is faceted by another variable, when provided a facet_var.

Details

plot_frequency_barplot