| resolve_edge_colors | R Documentation |
Determines edge colors based on weights, explicit colors, or defaults.
resolve_edge_colors(
edges,
edge.color = NULL,
posCol = "#2E7D32",
negCol = "#C62828",
default_col = "gray50"
)
edges |
Edge data frame with from, to, weight columns. |
edge.color |
User-specified edge color(s) or NULL. |
posCol |
Color for positive weights. |
negCol |
Color for negative weights. |
default_col |
Default color when no weight. |
Vector of colors for each edge.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.