plot_bn: Plot the BN structure.

Description Usage Arguments Value Examples

View source: R/gen_bn.R

Description

plot_bn generates a plot of the Bayesian Network structure.

Usage

1
plot_bn(structure, ht = "400px")

Arguments

structure

A string of the relationships between variables from modelstring.

ht

The height of the plot.

Value

The output is a plot of the Bayesian Network structure.

Examples

1
2
3
adult_data <- split_data(adult[1:100,], 70)
bn_learn = gen_bn_learn(adult_data$training_set, 'hc')
plot_bn(bn_learn$structure)

sdglinkage documentation built on April 27, 2020, 5:09 p.m.