tgp.trees {tgp} | R Documentation |
Plot the maximum a' posteriori (MAP) tree as a function of tree height, and show the log posterior probabilities for comparison.
tgp.trees(out, which = NULL, main = NULL, ...)
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 equivalent to
which = 1:length(out$trees) . For example, the first, third,
and forth trees would result if which = c(1,3,4) |
main |
Optional character string to add to the main title of the plot |
... |
Extra arguments to the draw.tree
function from maptree |
The only output of this function is beautiful tree diagrams.
Plotting trees that the maptree library is installed, which itself requires that the combinat library also be installed.
See vignette("tgp")
and the examples sections of the functions
under “See Also”, below
Robert B. Gramacy rbgramacy@ams.ucsc.edu
http://www.ams.ucsc.edu/~rbgramacy/tgp.html
bgpllm
, btlm
, blm
,
bgp
, btgpllm
,
plot.tgp
, mapT
, vignette("tgp")