plot.Subsampled_Permuted_Network_Metrics {aniSNA}R Documentation

To plot sub-sampling results of the original network and permuted networks

Description

To plot sub-sampling results of the original network and permuted networks

Usage

## S3 method for class 'Subsampled_Permuted_Network_Metrics'
plot(
  x,
  network,
  n_simulations = 100,
  subsampling_proportion = c(0.1, 0.3, 0.5, 0.7, 0.9),
  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 matrices obtained from subsampled_permuted_network_metrics function of class "Subsampled_Permuted_Network_Metrics"

network

An igraph graph object consisting of observed network

n_simulations

For subsampling results of original network, this determines the number of sub-samples to be obtained at each level

subsampling_proportion

A vector depicting the levels (in proportion) at which subsamples to be taken. This parameter should be the same as the subsampling_proportion parameter passed for the function subsampled_permuted_network_metrics to obtain x.

network_metrics_functions_list

This is the same argument that is passed for obtaining the results from the function subsampled_permuted_network_metrics. 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. The boxplots show side-by-side comparison of network metrics distribution from subsamples of observed network and subsamples from permuted networks.

Examples


data(elk_2010_permutations, elk_network_2010)
elk_subsamples_permuted_networks <- subsampled_permuted_network_metrics(elk_2010_permutations)
plot(elk_subsamples_permuted_networks, elk_network_2010)


[Package aniSNA version 1.1.1 Index]