View source: R/LCC_Histogram.R
Histogram_LCC | R Documentation |
Plots the histogram to evaluate the significance of the Largest Connected Component (LCC).
Histogram_LCC(LCC_L, Name = NULL)
LCC_L |
an output from the function LCC_Significance or LCC_Bipartide |
Name |
title of the plot |
An Histogram of the simulated LCC, and a red line of the actual LCC.
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")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.