Learn R Programming

pmartR (version 2.5.1)

statres_histogram: Fold change histogram for statres objects

Description

Plots a histogram indicating the number of significant biomolecules, grouped by test type and fold change direction.

Usage

statres_histogram(
  x,
  fc_colors = c("blue", "darkgray"),
  text_size,
  x_lab,
  y_lab,
  title_lab,
  legend_lab,
  free_y_axis,
  show_sig
)

Value

`ggplot` object - histogram

Arguments

x, fc_colors

passed from pmartR::plot.statRes()

text_size

An integer specifying the size of the text (number of non-missing values) within the plot. The default is 3. be displayed on the bar plot. The default is TRUE.

x_lab

character string specifying the x-axis label.

y_lab

character string specifying the y-axis label.

title_lab

character string specifying the plot title.

legend_lab

character string specifying the legend title.

free_y_axis

logical specifying whether to use scales = 'free' in ggplot2::facet_wrap

show_sig

logical specifying whether only significant fold changes are included in the histogram or all fold changes