Histogram_LCC: Histogram_LCC

Description Usage Arguments Value Examples

View source: R/LCC_Histogram.R

Description

Plots the histogram to evaluate the significance of the Largest Connected Component (LCC).

Usage

1
Histogram_LCC(LCC_L, Name = NULL)

Arguments

LCC_L

an output from the function LCC_Significance or LCC_Bipartide

Name

title of the plot

Value

An Histogram of the simulated LCC, and a red line of the actual LCC.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
set.seed(666)
net  = data.frame(
Node.1 = sample(LETTERS[1:15], 15, replace = TRUE),
Node.2 = sample(LETTERS[1:10], 15, replace = TRUE))
net$value = 1
net =  CoDiNA::OrderNames(net)
net = unique(net)

g <- igraph::graph_from_data_frame(net, directed = FALSE )
targets = c("N", "A", "I", "F")
LCC_Out = LCC_Significance(N = 1000,
                 Targets = targets,
                                  G = g,
                                  bins = 5,
                                  min_per_bin = 2)
                                  # in a real interactome, please use the default

Histogram_LCC(LCC_Out, "Example")

NetSci documentation built on Dec. 11, 2021, 9:21 a.m.