Convert pie igraph node shapes to coloredrectangle
Arguments
- g
igraph object, expected to contain one or more nodes with shape
"pie".- nrow, ncol
integer values indicating the default number of rows and columns to use when displaying the colors for each node.
- byrow
logical indicating whether each vector of node colors should fill the nrow,ncol matrix by each row, similar to how values are filled in
base::matrix()with argumentbyrow.- whichNodes
integer vector of nodes in
gwhich should be considered. Only nodes with shape"pie"will be converted which are also within thewhichNodesvector. By default, all nodes are converted, butwhichNodesallows converting only a subset of nodes.- ...
additional arguments are ignored.
Details
This function simply converts an igraph network with "pie"
node shapes, to use the "coloredrectangle" node shape
provided by the multienrichjam package.
In the process, it transfers related node attributes:
"pie.color"are copied to"coloredrect.color""pie.names"are copied to"coloredrect.names". The"coloredrect.names"can be used to label a color key."size"is converted to"size2"after applyingsqrt(size) * 1.5. The"size2"value is used to define the size of coloredrectangle nodes.
See also
Other jam igraph functions:
cnet2df(),
cnet2im(),
cnetplotJam(),
cnetplot_internalJam(),
color_edges_by_nodegroups(),
color_edges_by_nodes(),
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(),
relayout_with_qfr(),
removeIgraphBlanks(),
removeIgraphSinglets(),
reorderIgraphNodes(),
rotate_igraph_layout(),
spread_igraph_labels(),
subgraph_jam(),
subsetCnetIgraph(),
subset_igraph_components(),
sync_igraph_communities(),
with_qfr()