Learn R Programming

tgp (version 1.1-11)

tgp.trees: Plot the MAP Tree for each height encountered by the Markov Chain

Description

Plot the maximum a' posteriori (MAP) tree as a function of tree height, and show the log posterior probabilities for comparison.

Usage

tgp.trees(out, which = NULL, main = NULL, ...)

Arguments

out
"tgp"-class object which is the output of one the model functions with tree support (e.g. btgpllm)
which
Index vector of length less than length(out$trees) describing trees to plot. Default (NULL) is to plot all trees, one for each height encountered when sampling from the Markov chain of the tree posterior. This is equival
main
Optional character string to add to the main title of the plot
...
Extra arguments to the draw.tree function from maptree

Value

  • The only output of this function is beautiful tree diagrams.

References

http://www.ams.ucsc.edu/~rbgramacy/tgp.html

See Also

bgpllm, btlm, blm, bgp, btgpllm, plot.tgp, mapT, vignette("tgp")