Learn R Programming

cograph (version 2.7.2)

plot.tna_disparity: Plot Disparity Filter Result

Description

Plot Disparity Filter Result

Usage

# S3 method for tna_disparity
plot(x, type = c("backbone", "comparison"), combined = TRUE, ...)

Value

Invisibly returns the value from the underlying splot

call. Called primarily for the side effect of producing a plot.

Arguments

x

A tna_disparity object.

type

Plot type: "backbone" (default) or "comparison".

combined

Logical: when type = "comparison", controls whether the original vs. backbone panels are arranged in an internal 1 x 2 grid (TRUE, default) or drawn into a layout the caller has already configured (FALSE — pair with panel_layout()). Ignored for type = "backbone".

...

Additional arguments passed to splot.

Examples

Run this code
mat <- matrix(c(0.0, 0.5, 0.1, 0.0, 0.3, 0.0, 0.4, 0.1,
                0.1, 0.2, 0.0, 0.5, 0.0, 0.1, 0.3, 0.0), 4, 4, byrow = TRUE)
rownames(mat) <- colnames(mat) <- c("A", "B", "C", "D")
disp <- disparity_filter(cograph(mat), level = 0.05)
plot(disp)

Run the code above in your browser using DataLab