Learn R Programming

tgp (version 1.0-1)

tgp.trees: Plot MAP Treed Gaussian Process Models

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 library(maptree)

Value

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

References

http://people.ucsc.edu/~boobles/tgp.php

See Also

bgpllm, btlm, blm, bgp, btgpllm, plot.tgp