Description Usage Arguments Details Value Note References See Also
View source: R/comparison-plot.R
Generates a plot of representing results from
comparison.plot(RS, xlab=NULL, ylab=NULL, base_size=10, ...)
A data frame in the form returned by
Options to be passed to
The text base size passed to
This function generates a grid of subplots, where each column of
plots represents a sampler and each row represents a distribution.
The horizontal axis in each subplot represents the tuning parameter
the vertical axis represents the product
RS$evals * RS$act,
the number of log density evaluations per independent sample
required for that distribution when simulated by that sampler
with that tuning parameter. 95% confidence intervals, covering
[RS$evals * RS$act.025, RS$evals * RS$act.975],
are represented by vertical bars. If
is missing or infinite, a question mark is plotted instead of the
default plot character.
comparison.plot returns a ggplot2 plot object. If it
is called non-interactively, one must call
objects to the returned plot object before calling
For more discussion of this type of plot, see Thompson (2010).
A ggplot2 plot object.
This is the only function in SamplerCompare that uses the ggplot2
package, so it is loaded explicitly by
instead of being listed as a package dependency. This way, compute
compare.samplers do not need to
have ggplot2 installed on them.
Thompson, M. B. (2010), Graphical comparison of MCMC performance, University of Toronto Dept. of Statistics technical report no. 1010.
Thompson, M. B. (2011), “Introduction to SamplerCompare,” Journal of Statistical Software 43(12):1-10, doi: 10.18637/jss.v043.i12.
“Introduction to SamplerCompare” (vignette)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.