Processes a template string with placeholders and substitutes values.
format_edge_label_template(
template,
weight = NA,
ci_lower = NA,
ci_upper = NA,
p_value = NA,
stars = "",
digits = 2,
p_digits = 3,
p_prefix = "p=",
ci_format = "bracket",
oneline = TRUE
)Formatted label string.
Template string with placeholders: {est}, {range}, {low}, {up}, {p}, {stars}.
Edge weight (estimate).
Lower CI bound.
Upper CI bound.
P-value.
Significance stars string.
Decimal places for estimates.
Decimal places for p-values.
Prefix for p-values.
CI format: "bracket" or "dash".
Logical: single line format (space-separated) or multiline.