https://github.com/cran/BDgraph
Tip revision: b33395ea3345776d14733f32a62f1643ebf7699d authored by Abdolreza Mohammadi on 28 April 2017, 21:30:01 UTC
version 2.36
version 2.36
Tip revision: b33395e
plot.bdgraph.Rd
\name{plot.bdgraph}
\alias{plot.bdgraph}
\title{ Plot function for \code{S3} class \code{"bdgraph"} }
\description{ Visualizes structure of the selected graphs which could be a graph with links for which their estimated posterior probabilities are greater than 0.5
or graph with the highest posterior probability. }
\usage{ \method{plot}{bdgraph}( x, cut = NULL, number.g = 1, layout = layout.circle, ... ) }
\arguments{
\item{x}{ An object of \code{S3} class \code{"bdgraph"}, from function \code{\link{bdgraph}}. }
\item{cut}{ Threshold for including the links in the selected graph based on the estimated posterior probabilities of the links; See the examples. }
\item{number.g}{ The number of graphs with the highest probabilities (default is 1).}
\item{layout}{The vertex placement algorithm which is according to \pkg{igraph} package. }
\item{\dots}{System reserved (no specific usage).}
}
\references{
Mohammadi, A. and E. Wit (2015). Bayesian Structure Learning in Sparse Gaussian Graphical Models, \emph{Bayesian Analysis}, 10(1):109-138
Mohammadi, A. and E. Wit (2015). \pkg{BDgraph}: An \code{R} Package for Bayesian Structure Learning in Graphical Models, \emph{arXiv:1501.05108}
Mohammadi, A. et al (2017). Bayesian modelling of Dupuytren disease by using Gaussian copula graphical models, \emph{Journal of the Royal Statistical Society: Series C}
}
\author{ Abdolreza Mohammadi and Ernst Wit }
\seealso{\code{\link{bdgraph}}}
\examples{
\dontrun{
# Generating multivariate normal data from a 'random' graph
data.sim <- bdgraph.sim( n = 50, p = 6, size = 7, vis = TRUE )
bdgraph.obj <- bdgraph( data = data.sim )
plot( bdgraph.obj )
bdgraph.obj <- bdgraph( data = data.sim, save.all = TRUE )
plot( bdgraph.obj, number.g = 4 )
plot( bdgraph.obj, cut = 0.4 )
}
}