Skip to contents

# ridgeline plot of marker expression in cell populations

Source: `R/data_visualization.R`
`plot_marker_ridgeplot.Rd`

`plot_marker_ridgeplot()` plots the expression of selected markers as ridgeline plots for cell populations.

## Usage

    plot_marker_ridgeplot(
      fcd,
      marker,
      expr_slot = "orig",
      cluster_slot,
      cluster_var,
      cluster_to_show = NULL,
      color_palette = rev(cluster_palette),
      alpha = 1,
      title = ""
    )

## Arguments

fcd

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

marker

  vector of characters indicating which features of the expression matrix should be plotted.

expr_slot

  expr_slot from which to take marker expression values, default is "orig". Corrected input data should be handled cautiously.

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).

cluster_to_show

  (optional) vector of strings indicating levels in cluster_var that should be included for plotting.

color_palette

  vector of colors to be used to fill density distributions.

alpha

  numeric, adjust alpha to be used on fill color of density distributions.

title

  Title of the plot.

## Value

`plot_marker_ridgeplot()` returns either one plot in case only one marker is provided via `marker` argument or a list of plots, if several markers are requested.

## Details

plot_marker_ridgeplot

The ridgeline plots are plotted with default parameters of ggridges's `geom_density_ridges`