Learn R Programming

sdglinkage (version 0.1.0)

plot_bn: Plot the BN structure.

Description

plot_bn generates a plot of the Bayesian Network structure.

Usage

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

Run this code
# NOT RUN {
adult_data <- split_data(adult[1:100,], 70)
bn_learn = gen_bn_learn(adult_data$training_set, 'hc')
plot_bn(bn_learn$structure)

# }

Run the code above in your browser using DataLab