igraph2pieGraph: Convert igraph to use pie node shapes

igraph2pieGraphR Documentation

Convert igraph to use pie node shapes

Description

Convert igraph to use pie node shapes

Usage

igraph2pieGraph(
  g,
  valueIM = NULL,
  valueIMcolors = NULL,
  colorV = NULL,
  updateLabels = FALSE,
  maxNchar = 62,
  backgroundColor = "white",
  seed = 123,
  defineLayout = FALSE,
  repulse = 3.6,
  removeNA = FALSE,
  NAvalues = c(NA, "transparent"),
  verbose = FALSE,
  ...
)

Details

This function converts an igraph to use pie node shapes, where pie wedges are colored using values derived from a numeric matrix valueIM or pre-defined in a character matrix containing colors valueIMcolors.

Note that pie wedge sizes are equally-sized and do not vary by score, instead the color intensity is applied to each pie wedge.

Node names using V(g)$name matching rownames(valueIMcolors) are colorized and the node shape is converted to pie. All other nodes are not modified.

When valueIMcolors is not defined, it is derived from valueIM using colorjam::matrix2heatColors(). In that case, colorV defines the color used for numeric values in each column, and other options are passed to colorjam::matrix2heatColors() via ... arguments.

See Also

Other jam igraph functions: cnet2df(), cnet2im(), cnetplotJam(), cnetplot_internalJam(), color_edges_by_nodegroups(), color_edges_by_nodes_deprecated(), color_edges_by_nodes(), color_nodes_by_nodegroups(), communities2nodegroups(), drawEllipse(), edge_bundle_bipartite(), edge_bundle_nodegroups(), enrichMapJam(), fixSetLabels(), flip_edges(), get_bipartite_nodeset(), 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/multienrichjam documentation built on Feb. 7, 2024, 12:58 a.m.