Visualize the network of interactions, created from running CCM on community time series as part of the dynamic stability analysis

plot_network(ccm_links, layout = "circle", palette = NULL,
  palette_option = "plasma", existing_graph = NULL)

Arguments

ccm_links

a data.frame containing the inferred interactions from CCM, it should have a lib_column and target_column to specify the causal links (where directed edges are from target_column to lib_column)

layout

The type of layout to create.

palette

a data.frame with the colors for each vertex; if NULL, one will be created using viridis::viridis()

palette_option

the color palette to use (see viridis::viridis() for more info)

existing_graph

a data.frame specifying the layout of nodes (e.g. from a previous call to plot_network); if NULL, one will be created

Value

a list with three elements:

plot
the ggraph object to plot or save
palette
the palette (for a future
plot_networkcall)
graph
the graph (for a future
plot_networkcall)