color_edges_by_nodes: Colorize igraph edges by nodes

color_edges_by_nodesR Documentation

Colorize igraph edges by nodes

Description

Colorize igraph edges using node colors

Usage

color_edges_by_nodes(
  g,
  edge_alpha = NULL,
  Crange = c(0, 100),
  Lrange = c(0, 65),
  ...
)

Arguments

g

igraph object that contains vertex node attribute "color" as seen with igraph::vertex_attr(g, "color").

edge_alpha

numeric or NULL, where numeric value sets the edge alpha transparency, where edge_alpha=0 is completely transparent, edge_alpha=0.5 is 50% transparent, and edge_alpha=1 is completely not transparent, and is opaque. When edge_alpha=NULL the alpha values are supplied by colorjam::blend_colors() which blends the two values.

...

additional arguments are passed to colorjam::blend_colors().

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 from V(g)$pie.color

  • shape="coloredrectangle" uses the avereage color from V(g)$coloredrect.color

  • everything else uses V(g)$color

Value

igraph object with edge color attribute updated to represent the result of blending node colors, seen by igraph::edge_attr(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(), igraph2pieGraph(), jam_igraph(), jam_plot_igraph(), label_communities(), layout_with_qfrf(), layout_with_qfr(), 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()


jmw86069/jamenrich documentation built on Nov. 6, 2024, 7:07 p.m.