View source: R/network-investigate.R
| node_degrees | R Documentation |
Plot the node-degree distribution and fit its log-log slope, for example as a diagnostic for assessing whether a network has a scale-free-like degree distribution. The returned exponent is the negative fitted slope.
node_degrees(
net = NULL,
main = "Node degree distribution",
plot = TRUE,
legend = TRUE,
case_sensitive = FALSE,
normalize = FALSE,
nea = NULL,
plot_type = c("points", "smooth")
)
connectivity(...)
net |
Undirected igraph network, or a legacy network with a named
adjacency list in |
main |
Plot title. |
plot |
Draw the plot. |
legend |
Show network summary information. |
case_sensitive |
Identifier case policy used when |
normalize |
Re-normalize network node identifiers. The default is
|
nea |
Deprecated compatibility alias for |
plot_type |
Plot the observed degree frequencies as ordinary points or
as a smoothed density raster using |
... |
Arguments passed by the deprecated |
Invisibly, the fitted exponent, with model and data attributes.
Clauset A, Shalizi CR, Newman MEJ (2009). Power-law distributions in empirical data. \Sexpr[results=rd]{tools:::Rd_expr_doi("10.1137/070710111")}.
topology_2nd(), network_overlap(),
nea_member_recovery_benchmark()
data("NEArender.test")
net <- NEArender.test$NET$STRING.300K
exponent <- node_degrees(net, plot = FALSE)
attr(exponent, "data")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.