View source: R/plot-nestimate.R
| plot_netobject_ml | R Documentation |
Creates a side-by-side plot for a netobject_ml object, showing the
between-person and within-person networks.
plot_netobject_ml(
x,
layout = NULL,
common_scale = TRUE,
titles = c("Between-person", "Within-person"),
...
)
## S3 method for class 'netobject_ml'
plot(x, ...)
x |
A |
layout |
Character: layout algorithm. Default |
common_scale |
Logical: use the same maximum weight for both panels? Default TRUE. |
titles |
Character vector of length 2: panel titles. Default
|
... |
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")
btw <- as_cograph(mat)
wth <- as_cograph(mat * 0.6)
ml <- structure(list(between = btw, within = wth), class = c("netobject_ml", "list"))
plot_netobject_ml(ml)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.