View source: R/plotPPimportance.R
plot.PPimportance | R Documentation |
PPTreereg
Visualize importance measure of trained PPTreereg
model.
## S3 method for class 'PPimportance'
plot(x, marginal = FALSE, num_var = 5, ...)
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 |
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.
An object of the class ggplot
data(dataXY)
Model <- PPTreereg(Y~., data = dataXY, DEPTH = 2)
Tree.Imp <- PPimportance(Model)
plot(Tree.Imp)
plot(Tree.Imp, marginal = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.