plot.cograph_cluster_significance: Plot Cluster Significance

View source: R/cluster-metrics.R

plot.cograph_cluster_significanceR Documentation

Plot Cluster Significance

Description

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

Usage

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

Arguments

x

A cograph_cluster_significance object

...

Additional arguments passed to hist

Value

Invisibly returns x

Examples

## Not run: 
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)
}

## End(Not run)

cograph documentation built on April 1, 2026, 1:07 a.m.