add_plotly_threshold_lines: add hover lines

View source: R/add_plotly_threshold_lines.R

add_plotly_threshold_linesR Documentation

add hover lines

Description

A function that adds reactive dashed lines to a plotly object.

Usage

add_plotly_threshold_lines(
  p,
  line_pvalue,
  line_logfc,
  logfc_direction = "both",
  sig_type = "fdr"
)

Arguments

p

a ggplot

line_pvalue

the pvalue threshold

line_logfc

the logfc threshold

logfc_direction

string. Can be either 'positive', 'negative' or 'both'.

sig_type

string. Can be either 'fdr' or 'pvalue'.

See Also

Other plotly: add_plotly_layout_scatter(), add_plotly_layout_volcano(), add_plotly_line_unity(), add_plotly_trace(), plotly_tissue_enrichment()


lagelab/Genoppi documentation built on Oct. 13, 2022, 2:36 p.m.