plot.logicDT | R Documentation |
This function plots a logicDT model on the active graphics device.
fancy.plot(x, ...) ## S3 method for class 'logicDT' plot(x, fancy = TRUE, x_scaler = 0.5, margin_scaler = 0.2, cex = 1, ...)
x |
An object of the class |
... |
Arguments passed to fancy plotting function |
fancy |
Should the fancy mode be used for plotting? Default is
|
x_scaler |
Scaling factor on the horizontal axis for deeper trees,
i.e., |
margin_scaler |
Margin factor. Smaller values lead to smaller margins. |
cex |
Scaling factor for the plotted text elements. |
There are two plotting modes:
fancy = FALSE
which draws a tree with direct edges between
the nodes. Leaves are represented by their prediction value which is
obtained by the (observed) conditional mean.
fancy = TRUE
plots a tree similar to those in the rpart
(Therneau and Atkinson, 2019) and splinetree
(Neufeld and Heggeseth,
2019) R
packages. The trees are drawn in an angular manner and
if 4pL modeling was used for the leaves, appropriate plots of the fitted
curves are depicted in the leaves. Otherwise, the usual prediction values
are shown.
No return value, called for side effects
Therneau, T. & Atkinson, B. (2019). rpart: Recursive Partitioning and Regression Trees. https://CRAN.R-project.org/package=rpart
Neufeld, A. & Heggeseth, B. (2019). splinetree: Longitudinal Regression Trees and Forests. https://CRAN.R-project.org/package=splinetree
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.