splitDensity.Rd
Density plots of the split value for each variable.
splitDensity( trees, data, bandWidth = NULL, panelScale = NULL, scaleFactor = NULL, display = "histogram" )
trees | A list of trees created using the trees function. |
---|---|
data | Data frame containing variables from the model. |
bandWidth | Bandwidth used for density calculation. If not provided, is estimated from the data. |
panelScale | If TRUE, the default, relative scaling is calculated separately for each panel. If FALSE, relative scaling is calculated globally. @param scaleFactor A scaling factor to scale the height of the ridgelines relative to the spacing between them. A value of 1 indicates that the maximum point of any ridgeline touches the baseline right above, assuming even spacing between baselines. |
display | Choose how to display the plot. Either histogram, facet wrap, ridges or display both the split value and density of the predictor by using dataSplit. |
A faceted group of density plots
if (FALSE) { df_trees <- extractTreeData(model = my_model, data = my_data) splitDensity(trees = df_trees, data = my_data, display = 'dataSplit') }