Learn R Programming

BDgraph (version 2.7)

plot.bdgraph: Plot function for "bdgraph" output

Description

According to output of the 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". A list which is the result of the BD-MCMC algorithm from the 'bdgraph' function.
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 E. C. Wit (2012). Gaussian graphical model determination based on birth-death MCMC inference, arXiv:1210.5371v4. http://arxiv.org/abs/1210.5371v4

See Also

bdgraph

Examples

Run this code
# generating the data from a random graph
  data.sim <- bdgraph.sim(n = 100, p = 8, vis = TRUE)
  
  output   <- bdgraph(data.sim, mean = 0, iter = 2000)
  
  plot(output)
  
  plot(output, g = 4)

Run the code above in your browser using DataLab