get_diff_gene_count_barplot: Generate a barplot of DEG counts.

View source: R/viz_related.R

get_diff_gene_count_barplotR Documentation

Generate a barplot of DEG counts.

Description

Generate a barplot of DEG counts.

Usage

get_diff_gene_count_barplot(
  x,
  col_up = "#a40000",
  col_down = "#16317d",
  font_size = 12,
  show_counts = TRUE
)

Arguments

x

an object of class parcutils

col_up

a character string, default #a40000, denoting valid a color name for "Up" regulated genes.

col_down

a character string, default #16317d, denoting valid a color name "Down" regulated genes.

font_size

a numeric, default 12, denoting font size in the plot.

show_counts

a logical, default TRUE denoting whether to show counts on each bar.

Value

a ggplot

Examples

res = .get_parcutils_object_example()
get_diff_gene_count_barplot(res, font_size = 15)

cparsania/parcutils documentation built on Oct. 27, 2024, 4:55 a.m.