Learn R Programming

BDgraph (version 2.13)

plot.bdgraph: Plot function for "bdgraph" output

Description

According to the output of our BD-MCMC algorithm, this function gives us the plot.

Usage

## S3 method for class 'bdgraph':
plot( x, g = 1, layout = layout.circle, ... )

Arguments

x
An object with S3 class "bdgraph".
g
The number of graphical models with highest probabilities (default is 1).
layout
The vertex placement algorithm which is according to igraph package. The default is "layout.circle".
...
System reserved (no specific usage).

References

Mohammadi, A. and Wit, E. C. (2014). Bayesian structure learning in sparse Gaussian graphical models, Bayesian Analysis, acceped. http://arxiv.org/abs/1210.5371v6

See Also

bdgraph

Examples

Run this code
# generating synthetic multivariate normal data from a 'random' graph
  data.sim <- bdgraph.sim( n = 50, p = 6, vis = TRUE )
  
  output   <- bdgraph( data = data.sim )
  
  plot(output)
  
  plot( output, g = 4 )

Run the code above in your browser using DataLab