Learn R Programming

cograph (version 1.5.2)

build_edge_labels_from_template: Build Edge Labels from Template

Description

Generates edge labels for all edges using template formatting.

Usage

build_edge_labels_from_template(
  template = NULL,
  style = "none",
  weights = NULL,
  ci_lower = NULL,
  ci_upper = NULL,
  p_values = NULL,
  stars = NULL,
  digits = 2,
  p_digits = 3,
  p_prefix = "p=",
  ci_format = "bracket",
  oneline = TRUE,
  n
)

Value

Character vector of formatted labels.

Arguments

template

Template string or NULL.

style

Style preset (used if template is NULL).

weights

Edge weights/estimates.

ci_lower

Lower CI bounds (vector).

ci_upper

Upper CI bounds (vector).

p_values

P-values (vector).

stars

Stars input (character vector, logical, or numeric p-values).

digits

Decimal places for estimates.

p_digits

Decimal places for p-values.

p_prefix

Prefix for p-values.

ci_format

CI format: "bracket" or "dash".

oneline

Logical: single line format.

n

Number of edges.