run_profile_barplot: Generates both fill and stacked bar plots and saves to file

View source: R/profile_barplot.R

run_profile_barplotR Documentation

Generates both fill and stacked bar plots and saves to file

Description

Generates both fill and stacked bar plots and saves to file

Usage

run_profile_barplot(
  df,
  rowAnn_col = 1,
  out_dir = ".",
  labels = "",
  log_ = F,
  gradient_palette = "RdBu"
)

Arguments

df

A data frame - first column: rowAnnotation column with groups, the rest of the columns are values.

rowAnn_col

A column index (numeric) or name in df indicating which groups to stratify by.

out_dir

The output directory where the plot will be saved, default is current working directory.

labels

A character vector of at least length 1 that will be collapsed for file name/plot titles.

log_

Logical indicating whether to log2-transform values

gradient_palette

RColorBrewer palette for variable colors if var_colors is NA. See RColorBrewer::display.brewer.all() for all options.


kazeera/hourglass documentation built on April 5, 2025, 7:18 a.m.