highlight_multiple_connected {sgraph} | R Documentation |
Highlight edges of multiple connected nodes
Description
Using a selection of nodes, highlight edges linking to nodes that are connected to several nodes from the selection. Differentiate multiple connected and fully connected (all selected nodes). Use a maximum number of connected nodes to use lighter colored edges (default 20).
Usage
highlight_multiple_connected(
df_links,
selected_nodes,
n_max = 20,
dark_cols = c("#ddd", "#444", "#444"),
light_cols = c("#efefef", "#ddd", "#bbb")
)
Arguments
df_links |
Links data frame of a sgraph object |
selected_nodes |
Nodes identifiers to be used for the selection. |
n_max |
Maximum number of connected nodes, to use either lighter or darker color sets for edges (default 20). |
dark_cols |
Three hex values for colors to use with n_max. |
light_cols |
Three hex values for colors to use with n_max. |
Value
Links data frame of a sgraph object
[Package sgraph version 1.0.0 Index]