Learn R Programming

cograph (version 2.0.0)

plot.cograph_cluster_significance: Plot Cluster Significance

Description

Creates a histogram of the null distribution with the observed value marked.

Usage

# S3 method for cograph_cluster_significance
plot(x, ...)

Value

Invisibly returns x

Arguments

x

A cograph_cluster_significance object

...

Additional arguments passed to hist

Examples

Run this code
if (FALSE) {
if (requireNamespace("igraph", quietly = TRUE)) {
  g <- igraph::make_graph("Zachary")
  comm <- community_louvain(g)
  sig <- cluster_significance(g, comm, n_random = 20, seed = 42)
  plot(sig)
}
}

Run the code above in your browser using DataLab