Histogram_LCC: Histogram_LCC

View source: R/LCC_Histogram.R

Histogram_LCCR Documentation

Histogram_LCC

Description

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

Usage

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

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 Oct. 14, 2024, 5:08 p.m.