itemps | R Documentation |
Functions for making barplots summarizing the progress of
importance tempering. The itemps.barplot
function can be
used to make a histogram of the inverse temperatures visited
in the trans-temporal Markov chain. The hist2bar
function
is useful for making a histogram of integer-valued samples
(e.g., tree heights) encountered in one or several Markov chains
itemps.barplot(obj, main = NULL, xlab = "itemps",
ylab = "counts", plot.it = TRUE, ...)
hist2bar(x)
obj |
|
main |
Main plot label to be augmented by |
xlab |
Label for the x-axis |
ylab |
Label for the y-axis |
plot.it |
whether to plot the |
... |
other arguments passed to |
x |
|
itemps.barplot
specifically works with the $trace
field of a "tgp"
-class object. An error will be produced
if this field is NULL
, i.e., if the b*
function used
the create the object was not run with the argument trace=TRUE
The hist2bar
function can be used on any integer (or discrete)
valued matrix. The columns are interpreted as different realizations
of similar processes for comparison with one another via a histogram.
The histogram is obtained with the barplot
command used
with the argument beside=TRUE
. See the examples section of
default.itemps
Both functions return a data.frame
that can be used
within the barplot
function with argument
beside=TRUE
Robert B. Gramacy, rbg@vt.edu, and Matt Taddy, mataddy@amazon.com
Gramacy, R.B., Samworth, R.J., and King, R. (2007) Importance Tempering. ArXiv article 0707.4242 https://arxiv.org/abs/0707.4242
https://bobby.gramacy.com/r_packages/tgp/
default.itemps
, vignette(tgp2)
,
barplot
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.