draw_pvals: Barplot p-values using draw_bar

View source: R/draw_pvals.R

draw_pvalsR Documentation

Barplot p-values using draw_bar

Description

Plot 1 - p-values as a barplot

Usage

draw_pvals(
  x,
  xnames = NULL,
  yname = NULL,
  p_adjust_method = "none",
  pval_hline = 0.05,
  hline_col = "#FE4AA3",
  hline_dash = "dash",
  ...
)

Arguments

x

Float, vector: p-values.

xnames

Character, vector: feature names.

yname

Character: outcome name.

p_adjust_method

Character: method for p.adjust.

pval_hline

Float: Significance level at which to plot horizontal line.

hline_col

Color for pval_hline.

hline_dash

Character: type of line to draw.

...

Additional arguments passed to draw_bar.

Value

plotly object.

Author(s)

EDG

Examples

## Not run: 
draw_pvals(c(0.01, 0.02, 0.03), xnames = c("Feature1", "Feature2", "Feature3"))

## End(Not run)

egenn/rtemis documentation built on June 14, 2025, 11:54 p.m.