plot.Rd 1.8 KB
 Gilles Kratzer committed Feb 21, 2019 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 % plot.mcmcabn.Rd --- % Author : Gilles Kratzer % Created on : 18.02.2019 % Last modification : %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \name{plot.mcmcabn} \alias{plot.mcmcabn} \title{Function to MCMC samples generated by mcmcabn} \usage{ \method{plot}{mcmcabn}(x, max.score = FALSE, \dots) } \arguments{ \item{x}{object of class mcmcabn.} \item{max.score}{logical to plot the cumulative maximum network score.} \item{\dots}{arguments to be passed to methods} } \description{plot method for mcmcabn objects. } \details{The plot function for mcmcabn objects is based on ggplot2, ggpubr and cowplot. By default it return a trace plot with coloured points when MBR and REV methods have been used. It has histograms on the right of the densities of MC3, MBR and REV MCMC jumps respectively.} \author{Gilles Kratzer} \references{ H. Wickham. ggplot2: Elegant Graphics for Data Analysis. Springer-Verlag New York, 2016. Alboukadel Kassambara (2018). ggpubr: 'ggplot2' Based Publication Ready Plots. R package version 0.2. https://CRAN.R-project.org/package=ggpubr Claus O. Wilke (2019). cowplot: Streamlined Plot Theme and Plot Annotations for 'ggplot2'. R package version 0.9.4. https://CRAN.R-project.org/package=cowplot  Gilles Kratzer committed Feb 25, 2019 37 38 39 M. Barrett (2018). ggdag: Analyze and Create Elegant Directed Acyclic Graphs. R package version 0.1.0. https://CRAN.R-project.org/package=ggdag  Gilles Kratzer committed Feb 21, 2019 40 41 42 Scutari, M. (2010). Learning Bayesian Networks with the bnlearn R Package. Journal of Statistical Software, 35(3), 1 - 22. doi:http://dx.doi.org/10.18637/jss.v035.i03. }  Gilles Kratzer committed Feb 21, 2019 43   Gilles Kratzer committed Feb 21, 2019 44 \examples{  Gilles Kratzer committed Feb 21, 2019 45 \dontrun{  Gilles Kratzer committed Feb 21, 2019 46 47 48 49 ## Example from the asia dataset from Lauritzen and Spiegelhalter (1988) provided by Scutari (2010) data("mcmc_run_asia") #plot the mcmc run  Gilles Kratzer committed Feb 25, 2019 50 plot(mcmc.out.asia)  Gilles Kratzer committed Feb 21, 2019 51 }}