plot.splinetree | R Documentation |
plot.splinetree
takes a fitted (g)lmertree
with splines and plots it.
It is a wrapper for plot.glmertree
and
plot.lmertree
, with critical adjustments for
better visualization of spline models in the terminal nodes.
## S3 method for class 'splinetree'
plot(x, which = "all", fitted = "marginal", ...)
x |
fitted object of class |
which |
character, "both", "tree" or "ranef". Other options are available, see
|
fitted |
character, "marginal" (default), "combined" or "none".
Specifies whether and how fitted values should be computed and visualized.
See |
... |
additional arguments to be passed to |
setup.spline
predict.splinetree
plot.lmertree
plot.glmertree
st <- splinetree(Pn ~ ns(PAR, df = 5) | Specimen | Species, data = eco,
cluster = Specimen)
plot(st)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.