powered by
plot_bn generates a plot of the Bayesian Network structure.
plot_bn
plot_bn(structure, ht = "400px")
A string of the relationships between variables from modelstring.
modelstring
The height of the plot.
The output is a plot of the Bayesian Network structure.
# 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