Learn R Programming

BayesNetBP (version 1.6.1)

PlotTree: Plot the cluster tree

Description

Plot the structure of a '>ClusterTree object

Usage

PlotTree(tree, color = "gray90")

Arguments

tree

a '>ClusterTree object

color

nodes color

Details

Plot the structure of clustertree object, with the nodes labeled by corresponding elimination node. The circles represent continuous clusters, while the boxes represent discrete clusters. This function requires Rgraphviz package.

References

Cowell, R. G. (2005). Local propagation in conditional Gaussian Bayesian networks. Journal of Machine Learning Research, 6(Sep), 1517-1550.

Yu H, Moharil J, Blair RH (2020). BayesNetBP: An R Package for Probabilistic Reasoning in Bayesian Networks. Journal of Statistical Software, 94(3), 1-31. <doi:10.18637/jss.v094.i03>.

Cowell, R. G. (2005). Local propagation in conditional Gaussian Bayesian networks. Journal of Machine Learning Research, 6(Sep), 1517-1550.

Examples

Run this code
# NOT RUN {
# }
# NOT RUN {
library("Rgraphviz")
data(toytree)
PlotTree(toytree)
# }
# NOT RUN {
# }

Run the code above in your browser using DataLab