View source: R/plot.PAFit_net.R
plot.PAFit_net | R Documentation |
PAFit_net
object
This function plots a PAFit_net
object. There are four options of plot
to specify the type of plot.
The first two concern plotting the graph in $graph
of the PAFit_net
object. Option plot = "graph"
plots the graph, while plot = "degree"
plots the degree distribution. Option slice
allows selection of the time-step at which the temporal graph is plotted.
The last two options concern plotting the PA function and node fitnesses (if they are not NULL
).
## S3 method for class 'PAFit_net'
plot(x,
plot = "graph" ,
slice = length(unique(x$graph[,3])) - 1,
...)
x |
An object of class |
plot |
String. Possible values are |
slice |
Integer. Ignored when |
... |
Other arguments to pass to the underlying plotting function. |
Outputs the desired plot.
Thong Pham thongphamthe@gmail.com. When plot = "graph"
, the function uses plot.network.default
in the network package.
library("PAFit")
# a network from Bianconi-Barabasi model
net <- generate_BB(N = 50 , m = 10 , s = 10)
plot(net, plot = "graph")
plot(net, plot = "degree")
plot(net, plot = "PA")
plot(net, plot = "fit")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.