Plotting interface for objects returned by multimixMN().
Depending on what, the method can:
what = "network": plot the estimated multilayer network, or a single layer iflayeris specified;what = "intra": plot intralayer node-level metrics or edge weights with bootstrap quantile regions;what = "inter": plot interlayer node metrics or interlayer edge weights with bootstrap quantile regions;what = "stability": plot node stability within communities based on bootstrap community assignments.
Arguments
- x
An object of class
"multimixMN_fit", as returned bymultimixMN().- what
Type of plot to produce. One of
c("network","intra","inter","stability").- layer
Optional layer name. For
what = "intra"orwhat = "stability", this selects which layer-specific fit to use. Forwhat = "network", if provided, the selected layer is plotted as a single layer network.- ...
Additional arguments. Supported arguments depend on
what: see the details below.
Value
If what != "network", the function returns a ggplot object.
If what = "network", the network is plotted directly.
Details
Network plots (what = "network"):
Supported arguments (via ...):
color_byNode coloring:
c("layer","community","none").edge_color_byEdge coloring:
c("sign","none").edge_scaleNumeric scaling factor for edge widths (multiplied by
abs(weight)).graphics::plot.igraphargumentse.g.,
vertex.size,vertex.label.cex,edge.width,vertex.label.color, etc.
Intralayer statistics (what = "intra"):
Plots node-level metrics or edge weights with bootstrap quantile regions.
If layer is provided, only that layer is plotted. If layer is
NULL, all layers are plotted, one panel per layer.
Supported arguments (via ...):
statisticsCharacter vector of metrics. Options include:
"strength","expected_influence","closeness","betweenness", bridge metrics"bridge_strength","bridge_ei1","bridge_ei2","bridge_closeness","bridge_betweenness", excluded bridge metrics"bridge_strength_excluded","bridge_ei1_excluded","bridge_ei2_excluded","bridge_closeness_excluded","bridge_betweenness_excluded", and"edges". Different metric families cannot be mixed in the same call (e.g.,"edges"cannot be combined with node metrics).orderingNode ordering:
c("value","alphabetical","community").standardizeLogical; if
TRUE, z-standardize the displayed values within each panel.exclude_nodesOptional character vector of node names to remove before plotting.
color_by_communityLogical; if
TRUE, color nodes by community when available.edges_top_nInteger; when
statistics = "edges", keep the top edges by absolute weight.titleOptional plot title. If omitted and multiple layers are shown, layer-specific titles are added automatically.
Interlayer summaries (what = "inter"):
Plots interlayer node metrics or interlayer edge weights with bootstrap
quantile regions.
Supported arguments (via ...):
statisticsCharacter vector. Node metrics:
c("strength","expected_influence","closeness","betweenness"), or"edges"for interlayer edge weights. Node metrics and"edges"cannot be combined.pairsLayer pairs to show. Either
"*"(all available) or a character vector of pair keys like"bio_dis"(order-insensitive).edges_top_nInteger; keep the top interlayer edges by absolute weight.
orderingOrdering within panels:
c("value","alphabetical").standardizeLogical; if
TRUE, z-standardize values (node metrics by metric, edges by pair).exclude_nodesOptional character vector; removes nodes and incident interlayer edges.
nodes_layerOptional layer name to restrict node metrics to nodes belonging to that layer.
titleOptional plot title.
Community membership stability (what = "stability"):
Plots node stability by community. If layer is provided, only that
layer is shown. Otherwise, stability plots are shown for all layers.
Supported arguments (via ...):
titlePlot title. Default:
"Node Stability by Community".cutoffOptional numeric threshold in \([0,1]\) shown as a dashed vertical line. Use
NULLto hide the line. Default: 0.7.
The quantile region level is taken from the fitted object
(x$settings$quantile_level); if missing or invalid, a default of 0.95
is used.