plot.network_plot: Plot function for 'network_plot' class

Description Usage Arguments Value Examples

View source: R/plotting.R

Description

Plot function for 'network_plot' class

Usage

1
2
## S3 method for class 'network_plot'
plot(x, ...)

Arguments

x

A 'network_plot' object obtained from plot.network or plot_network.

...

Additional arguments passed to plot.igraph.

Value

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

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
nw <- random_network(10)
g <- plot(nw)
# Can change the plot by modifying the instance `g`.
# For example, make vertex size and edge width twice as big.
g$edge.width <- 2 * g$edge.width
g$vertex.size <- 2 * g$vertex.size
# Change color of verticies, edges, and vertex labels.
g$edge.color <- "orange"
g$vertex.color <- "navy"
g$vertex.label.color <- "white"
plot(g)

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