plot.network {SeqNet} | R Documentation |
Plot function for 'network' object
Description
This function plots the given network. If the result of another plot is provided, this plot will be modified for easier comparison.
Usage
## 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 |
as_subgraph |
If |
... |
Additional arguments passed to |
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
nw <- random_network(10)
plot(nw)