plot.list_permuted_networks {aniSNA}R Documentation

Function to plot the network metrics distribution of permuted networks

Description

Function to plot the network metrics distribution of permuted networks

Usage

## S3 method for class 'list_permuted_networks'
plot(
  x,
  species_original_network,
  network_metrics_functions_list = c(edge_density = function(x) igraph::edge_density(x),
    diameter = function(x) igraph::diameter(x, weights = NA), transitivity = function(x)
    igraph::transitivity(x)),
  ...
)

Arguments

x

A list of igraph objects obtained obtained using the function obtain_permuted_network_versions

species_original_network

An igraph object which is the original network

network_metrics_functions_list

A list consisting of function definitions of the network metrics that the user wants to evaluate. Each element in the list should have an assigned name. Default = c("edge_density" = function(x) igraph::edge_density(x), "diameter" = function(x) igraph::diameter(x, weights = NA), "transitivity" = function(x) igraph::transitivity(x))

...

Further arguments are ignored.

Value

No return value, called for side effects.

Examples


data(elk_data_2010, elk_network_2010)
permuted_versions <- obtain_permuted_network_versions(elk_data_2010, 
temporal_thresh = 7, spatial_thresh = 15, n_permutations = 10, n_cores = 2)
plot(permuted_versions, elk_network_2010)


[Package aniSNA version 1.1.1 Index]