plot.PPimportance {PPtreeregViz} | R Documentation |
Variable importance plot of PPTreereg
Description
Visualize importance measure of trained PPTreereg
model.
Usage
## S3 method for class 'PPimportance'
plot(x, marginal = FALSE, num_var = 5, ...)
Arguments
x |
an importance object of the class |
marginal |
plot global importance. Default value is FALSE. |
num_var |
number of variables to show. |
... |
arguments to be passed to methods |
Details
To visualize the variable importance values of PPTreereg
model, two types of plots are
provided - importance of variables for each final node and global variable importance.
Value
An object of the class ggplot
Examples
data(dataXY)
Model <- PPTreereg(Y~., data = dataXY, DEPTH = 2)
Tree.Imp <- PPimportance(Model)
plot(Tree.Imp)
plot(Tree.Imp, marginal = TRUE)
[Package PPtreeregViz version 2.0.5 Index]