Skip to contents

MiRA shows a network in several views, each opened by a button in MiRA's toolbar. MiRA calls them modes, hence the functions' names; this documentation says view, and both words mean the same thing. A mira_mode_*() component opens the plot in that view; without one, MiRA opens in the network view (network mode), the stack of layers. Everything can still be changed in MiRA, including the view.

Details

One view per plot. A plot opens in one view. A later mira_mode_*() of another view replaces the earlier one, with a warning; a later one of the same view changes only the arguments it gives. To show a network in two views, make two plots. To open a network in any view with MiRA's defaults, use plot_mira() with mode.

What applies where. The other components of the plot apply in the views where MiRA uses them:

Componentnetworkgridmaplayermetadashboard, data
mira_layout()yesyesyesinside the bubbles
mira_node()yesyesyesshapes
mira_intralayer()yesyesyes
mira_interlayer()yesyes
mira_layer() colorsyesyesyescolor_by
mira_node(highlight = )yesyesyesyes
mira_filter()yesyesyeslayers only
mira_camera()yes
mira_legends()yesyesyesposition, show = FALSEposition, show = FALSE

R warns when mira_filter() or mira_camera() is combined with a view that does not use it. The meta-network has its own layer filter, which dims the other layers instead: mira_mode_meta(layers = ). The layer view and the meta-network have their own legends, which start open; the legend names of mira_legends() are those of the network, grid and map views.