Learn R Programming

cograph (version 2.0.0)

plot_netobject_group: Plot a Group of Nestimate netobjects

Description

Creates a multi-panel plot for a netobject_group list, one panel per group. Mirrors plot_group_permutation() in structure.

Usage

plot_netobject_group(
  x,
  nrow = NULL,
  ncol = NULL,
  common_scale = TRUE,
  title_prefix = NULL,
  ...
)

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

Value

Invisibly returns x.

Arguments

x

A netobject_group object (named list of netobjects).

nrow

Integer: number of rows in the panel grid. Auto-computed if NULL.

ncol

Integer: number of columns in the panel grid. Auto-computed if NULL.

common_scale

Logical: use the same maximum weight across all panels? Default TRUE.

title_prefix

Character: optional prefix added before each group name in panel titles.

...

Additional arguments passed to splot().

Examples

Run this code
mat <- matrix(c(0, .5, .3, .5, 0, .4, .3, .4, 0), 3, 3)
colnames(mat) <- rownames(mat) <- c("A", "B", "C")
net1 <- as_cograph(mat)
net2 <- as_cograph(mat * 0.5)
grp <- structure(list(G1 = net1, G2 = net2), class = c("netobject_group", "list"))
plot_netobject_group(grp)

Run the code above in your browser using DataLab