| plot_gimme | R Documentation |
gimme-package convention, via cograph)Draws a GIMME result the way the gimme package does: a single p-node
network where dashed edges are lag-1 (temporal) and solid
edges are lag-0 (contemporaneous), edge width is the proportion of
subjects that have the path, black edges are group-level paths and
grey edges individual-level, and autoregression shows as a dashed self-loop.
Rendered with cograph::splot(), so a lag and a contemporaneous effect
between the same pair are drawn as two parallel edges.
plot_gimme(
x,
weight = c("prop", "coef"),
group_color = "black",
individual_color = "grey60",
layout = "circle",
curvature = 0.25,
edge_scale = 5,
...
)
x |
A |
weight |
|
group_color, individual_color |
Edge colours for group- vs
individual-level paths. Defaults |
layout |
cograph layout passed to |
curvature |
Edge curvature (separates parallel lag/contemp edges).
Default |
edge_scale |
Multiplier mapping weight to drawn line width. Default |
... |
Further arguments forwarded to |
Invisibly, the mixed cograph_network object that was plotted.
as_netobject() for the matrix view.
set.seed(1)
panel <- data.frame(
id = rep(1:5, each = 30),
t = rep(seq_len(30), 5),
A = rnorm(150), B = rnorm(150), C = rnorm(150)
)
gm <- fit_gimme(panel, vars = c("A", "B", "C"), id = "id", time = "t")
plot_gimme(gm)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.