plot_compare | R Documentation |
Plots the difference network between model x
and model y
. The edges are
computed from subtracting the two models. The pie chart is the difference in
initial probabilities between model x
and model y
. Green color indicates
that x
is greater than y
and red indicates otherwise.
plot_compare(x, ...)
## S3 method for class 'tna'
plot_compare(
x,
y,
theme = NULL,
palette = "colorblind",
posCol = "#009900",
negCol = "red",
...
)
x |
A |
... |
Additional arguments passed to |
y |
A |
theme |
See |
palette |
See |
posCol |
Color for plotting edges and pie when
the first group has a higher value. See |
negCol |
Color for plotting edges and pie when
the second group has a higher value. See |
A qgraph
object displaying the difference network between the
two models.
Model comparison functions
compare()
,
compare.group_tna()
,
plot.tna_comparison()
,
plot_compare.group_tna()
,
print.tna_comparison()
model_x <- tna(group_regulation[group_regulation[, 1] == "plan", ])
model_y <- tna(group_regulation[group_regulation[, 1] != "plan", ])
plot_compare(model_x, model_y)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.