Determines edge widths based on weights or explicit values. Supports multiple scaling modes, two-tier cutoff, and output range specification.
resolve_edge_widths(
edges,
edge.width = NULL,
esize = NULL,
n_nodes = NULL,
directed = FALSE,
maximum = NULL,
minimum = 0,
cut = NULL,
edge_width_range = NULL,
edge_scale_mode = NULL,
scaling = "default",
base_width = NULL,
scale_factor = NULL
)Vector of widths for each edge.
Edge data frame.
User-specified width(s) or NULL.
Base edge size. NULL uses adaptive sizing based on n_nodes.
Number of nodes (for adaptive esize calculation).
Whether network is directed.
Maximum weight for scaling (NULL for auto).
Minimum weight threshold.
Two-tier cutoff. NULL = auto (75th pct), 0 = disabled.
Output width range c(min, max).
Scaling mode: "linear", "log", "sqrt", "rank".
Scaling mode for constants: "default" or "legacy".
Legacy: Base width value.
Legacy: Width scaling factor.