plot.gamtree | R Documentation |
Takes a fitted GAM tree and plots the smooth functions fitted in each of the terminal nodes of the tree.
## S3 method for class 'gamtree'
plot(
x,
which = "both",
ylim = "firstnode",
treeplot_ctrl = list(),
gamplot_ctrl = list(),
...
)
x |
object of class |
which |
character. The default ( |
ylim |
|
treeplot_ctrl |
list of (named) arguments to be passed to
|
gamplot_ctrl |
list of (named) arguments to be passed to
|
... |
further arguments, currently not used. |
The plotted terms by default also represent confidence bands. These should be taken with a big grain of salt, because they do NOT account for the searching of the tree structure; they assume the tree structure was known in advance. They should be interpreted as overly optimistic and with caution.
gt <- gamtree(Pn ~ s(PAR, k = 5L) | Species, data = eco,
cluster = Specimen)
plot(gt, which = "tree") # default is which = 'both'
plot(gt, which = "terms")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.