Learn R Programming

BayesNetBP (version 1.0.1)

PlotMarginals: Plot the marginal distributions

Description

Plot the marginal distributions.

Usage

PlotMarginals(marginals, groups = NULL)

Arguments

marginals

the marginal distributions returned by Marginals for plotting

groups

names of the marginals to be shown on plots

Details

Plot the marginal distributions. Marginals of discrete variables are plotted as bar plots, while those of continuous variables as density plots.

References

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

See Also

Marginals

Examples

Run this code
data(toytree)
marg <- Marginals(toytree, c("A", "B", "H", "J"))
PlotMarginals(marginals=marg, groups=NULL)

Run the code above in your browser using DataLab