View source: R/plot-nestimate.R
| plot_net_bootstrap_group | R Documentation |
Plots each cluster's net_bootstrap in a grid, routing every panel
through splot.net_bootstrap so significance styling (solid vs
dashed edges) is preserved. Earlier versions extracted bs$original
per cluster and handed plain netobjects to splot(), which
dispatches to splot.netobject — that path has no concept of
significance, so every edge rendered identically.
plot_net_bootstrap_group(
x,
nrow = NULL,
ncol = NULL,
common_scale = TRUE,
combined = TRUE,
...
)
## S3 method for class 'net_bootstrap_group'
plot(x, ...)
x |
A |
nrow, ncol |
Grid dimensions. Defaults to auto-computed square layout. |
common_scale |
Logical: use the same maximum weight across panels? Default TRUE. |
combined |
Logical: when TRUE (default), arrange panels in an internal
grid via |
... |
Additional arguments passed to |
Invisibly returns x.
set.seed(1)
seqs <- data.frame(T1 = sample(c("A","B","C"), 30, replace = TRUE),
T2 = sample(c("A","B","C"), 30, replace = TRUE))
grp <- Nestimate::cluster_network(seqs, k = 2)
gbs <- Nestimate::bootstrap_network(grp, iter = 10)
plot_net_bootstrap_group(gbs)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.