Colorize igraph edges using node colors
Arguments
- g
igraphobject that contains vertex node attribute"color"as seen withigraph::vertex_attr(g, "color").- edge_alpha
numericorNULL, where numeric value sets the edge alpha transparency, whereedge_alpha=0is completely transparent,edge_alpha=0.5is 50% transparent, andedge_alpha=1is completely not transparent, and is opaque. Whenedge_alpha=NULLthe alpha values are supplied bycolorjam::blend_colors()which blends the two values.- ...
additional arguments are passed to
colorjam::blend_colors().
Value
igraph object with edge color attribute updated to
represent the result of blending node colors, seen by
igraph::edge_attr(g)$color.
Details
This function colorizes edges by blending colors for the
nodes involved, by calling colorjam::blend_colors().
The color for each node depends upon the node shape, so the color or colors used to render each node shape will be used for the edge. For example:
shape="pie"uses the average color fromV(g)$pie.colorshape="coloredrectangle"uses the avereage color fromV(g)$coloredrect.coloreverything else uses
V(g)$color
See also
Other jam igraph functions:
cnet2df(),
cnet2im(),
cnetplotJam(),
cnetplot_internalJam(),
color_edges_by_nodegroups(),
color_edges_by_nodes_deprecated(),
color_nodes_by_nodegroups(),
communities2nodegroups(),
drawEllipse(),
edge_bundle_bipartite(),
edge_bundle_nodegroups(),
enrichMapJam(),
fixSetLabels(),
flip_edges(),
get_bipartite_nodeset(),
highlight_edges_by_node(),
igraph2pieGraph(),
jam_igraph(),
jam_plot_igraph(),
label_communities(),
layout_with_qfr(),
layout_with_qfrf(),
mem2emap(),
memIM2cnet(),
mem_multienrichplot(),
nodegroups2communities(),
rectifyPiegraph(),
relayout_with_qfr(),
removeIgraphBlanks(),
removeIgraphSinglets(),
reorderIgraphNodes(),
rotate_igraph_layout(),
spread_igraph_labels(),
subgraph_jam(),
subsetCnetIgraph(),
subset_igraph_components(),
sync_igraph_communities(),
with_qfr()