plotMeanMedValuesPerCellType: Plot bar, point or boxplots showing mean/median values per...

plotMeanMedValuesPerCellTypeR Documentation

Plot bar, point or boxplots showing mean/median values per cell type. This is a generic function for plotting mean or median values per cell type (used for expression shift distances and others).

Description

Plot bar, point or boxplots showing mean/median values per cell type. This is a generic function for plotting mean or median values per cell type (used for expression shift distances and others).

Usage

plotMeanMedValuesPerCellType(
  df,
  pvalues = NULL,
  type = c("box", "point", "bar"),
  show.jitter = TRUE,
  notch = TRUE,
  jitter.alpha = 0.05,
  palette = NULL,
  ylab = "expression distance",
  yline = 1,
  plot.theme = theme_get(),
  jitter.size = 1,
  line.size = 0.75,
  trim = 0,
  order.x = TRUE,
  pvalue.y = NULL,
  y.max = NULL,
  y.offset = NULL,
  ns.symbol = "",
  coord.flip = FALSE
)

Arguments

df

dataframe containing the results, including $value and $Type slots which will be summarized

type

character vector (default=c('box', 'point', 'bar')) Type of a plot "bar" (default), "point" (mean + sd), or "box" for boxplot

show.jitter

boolean (default = FALSE) Whether to show individual data points

notch

boolean Whether to show notches in the boxplot version (default=TRUE)

jitter.alpha

transparency value for the data points (default: 0.05)

palette
  • cell type palette

coord.flip

flip coordinates of the plot

Value

A ggplot2 object


kharchenkolab/cacoa documentation built on Nov. 8, 2024, 6:06 a.m.