Plots prop_pos with confidence intervals as dot + error bars, and optionally annotates FDR-adjusted p-values.

plot_pathway_directional_bias(
  pathway_tbl,
  reorder = TRUE,
  show_fdr_label = TRUE,
  fdr_digits = 2,
  null_line = 0.5,
  title = "Depth bias by pathway (proportion + 95% CI)",
  xlab = "rbims_pathway",
  ylab = "Proportion of KOs with effect > 0"
)

Arguments

pathway_tbl

Output tibble from calc_pathway_directional_bias().

reorder

Logical; reorder pathways by prop_pos. Default TRUE.

show_fdr_label

Logical; annotate points with FDR text. Default TRUE.

fdr_digits

Digits for scientific formatting. Default 2.

null_line

Numeric; draw a dashed horizontal reference line (e.g. 0.5).

title

Plot title.

xlab

X axis label.

ylab

Y axis label.

Value

A ggplot object.