plotly
This is an updated version of plot.mixMCMC
. For technical details, please refer to plot.mixMCMC
.
plotly_mixMCMC(x, trace.plot = TRUE, summary.plot = FALSE, burnin = 2000,
credit.region = 0.95, col.cr = NULL,
cex.trace = 3, width.trace = 3,
cex.summary = 3, width.summary = 1,
title.trace = "", title.trace.x = 0.5,
title.trace.y = 0.95, title.trace.size = 15,
xlab.trace = "Index", xlab.trace.size = 15, xtick.trace.size = 15,
ylab.trace = NULL, ylab.trace.size = 15, ytick.trace.size = 15,
title.summary = "Credible Regions", title.summary.x = 0.5,
title.summary.y = 0.95, title.summary.size = 15,
xlab.summary = "Predictor", xlab.summary.size = 15,
xtick.summary.size = 15,
ylab.summary = "Response", ylab.summary.size = 15,
ytick.summary.size = 15
)
plotly_mixMCMC
returns trace plots of the various parameters estimated by the MCMC methods for all objects of class
mixMCMC
. In addition, other plots may be produced for the following k-component mixture model functions:
Credible bands for the regression lines in a mixture of linear regressions. See regcr
for more details.
An object of class mixMCMC
.
If TRUE, trace plots of the various parameters estimated by the MCMC methods is given.
Graphics pertaining to certain mixture models. The details are given below.
The values 1 to burnin
are dropped when producing the plots in summary.plots
.
Confidence level of credit region.
Color of credit region. Number of color specified needs to be consistent with number of components.
Dot size of trace plots.
Line width of trace plots.
Dot size of summary plots.
Line width of summary plots.
Text of the main title of trace plots.
Horizontal position of main title of trace plots.
Vertical position of main title of trace plots.
Text sise of main title of trace plots.
Label of X-axis of trace plots.
Size of the lable of X-axis of trace plots.
Size of tick lables of X-axis of trace plots.
Label of Y-axis of trace plots.
Size of the lable of Y-axis of trace plots.
Size of tick lables of Y-axis of trace plots.
Text of the main title of summar plot.
Horizontal position of main title of summary plot.
Vertical position of main title of summary plot.
Text sise of main title of summary plot.
Label of X-axis of summary plot.
Size of the lable of X-axis of summary plot.
Size of tick lables of X-axis of summary plot.
Label of Y-axis of summary plot.
Size of the lable of Y-axis of summary plot.
Size of tick lables of Y-axis of summary plot.
regcr
, plot.mixMCMC
if (FALSE) {
data(NOdata)
attach(NOdata)
set.seed(100)
beta <- matrix(c(1.3, -0.1, 0.6, 0.1), 2, 2)
sigma <- c(.02, .05)
MH.out <- regmixMH(Equivalence, NO, beta = beta, s = sigma,
sampsize = 2500, omega = .0013)
plotly_mixMCMC(x = MH.out, summary.plot = TRUE, col.cr = c("red", "green"))
}
Run the code above in your browser using DataLab