A wrapper for the strength.plot function in bnlearn. See ?strength.plot. This does the same thing, except it colors edges by whether they are true positives (green), false positives (red), or false negatives (blue), adding more information to the graph.
1 2 3 4 5 | strength_plot(strength, ground_truth, directed_edges = TRUE,
plot_truth = TRUE, threshold = NULL)
strength_plot_list(strength, ground_truth, directed_edges = TRUE,
plot_truth = TRUE, threshold = NULL)
|
strength |
model averaging resuts, an object of class bn.strength. See ?bn.strength. |
ground_truth |
the graph structure to be plotted, sn object of class bn. |
plot_truth |
if TRUE plot on 'true' (reference) graph structure, FALSE then plot on consensus graph structure |
threshold |
a numeric value, the minimum strength required for an arc to be included in the averaged network. If nothing is entered, the threshold attribute of the strength argument is used. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.