View source: R/plot-nestimate.R
| plot_netobject_group | R Documentation |
Creates a multi-panel plot for a netobject_group list, one panel per group.
Mirrors plot_group_permutation() in structure.
plot_netobject_group(
x,
nrow = NULL,
ncol = NULL,
common_scale = TRUE,
title_prefix = NULL,
...
)
## S3 method for class 'netobject_group'
plot(x, ...)
x |
A |
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 |
Invisibly returns x.
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.