| cgv_highlight_path | R Documentation |
Draw a highlighted path between nodes. Path nodes get a distinct color and enlarged size; path edges are drawn as thick colored segments on top of existing edges.
cgv_highlight_path(
viewer,
path,
color = "#FF0000",
node_scale = 2,
edge_width = 5
)
viewer |
External pointer returned by |
path |
Integer vector of node IDs forming the path (1-based). |
color |
Color as hex string |
node_scale |
Numeric: size multiplier for highlighted nodes (default 2.0). |
edge_width |
Numeric: line width for path edges (default 5.0). |
No return value, called for side effects: adds (or replaces)
the highlight overlay for the given path. Returns NULL
invisibly.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.