plot.network: Plot function for 'network' object

Description Usage Arguments Value Examples

View source: R/plotting.R

Description

This function plots the given network. If the result of another plot is provided, this plot will be modified for easier comparison.

Usage

1
2
## S3 method for class 'network'
plot(x, compare_graph = NULL, show_modules = FALSE, as_subgraph = FALSE, ...)

Arguments

x

A 'network' object.

compare_graph

The plot of another network to use for comparison.

show_modules

If TRUE, the modules will highlighted in the graph. Defaults to FALSE if there is exactly one module in the network and to TRUE otherwise.

as_subgraph

If TRUE, only nodes of positive degree will be shown. Defaults to FALSE if there are 100 or fewer nodes in the network and to TRUE otherwise.

...

Additional arguments passed to plot_modules or plot_network.

Value

Creates a plot of the module and returns a graph object. See plot_modules and plot_network for details.

A 'network_plot' object for the network. This object can be passed back into a future call of plot.network through the compare_graph argument, which will setup the plot for easier comparison between the old graph and the new graph of network.

Examples

1
2
nw <- random_network(10)
plot(nw)

SeqNet documentation built on July 9, 2021, 9:08 a.m.