viviHeatmap
Plots a Heatmap showing variable importance on the diagonal and variable interaction on the off-diagonal.
viviHeatmap( mat, intPal = rev(colorspace::sequential_hcl(palette = "Blues 3", n = 100)), impPal = rev(colorspace::sequential_hcl(palette = "Reds 3", n = 100)), intLims = NULL, impLims = NULL, angle = NULL )
mat |
A matrix, such as that returned by vivi, of values to be plotted. |
intPal |
A vector of colours to show interactions, for use with scale_fill_gradientn. |
impPal |
A vector of colours to show importance, for use with scale_fill_gradientn. |
intLims |
Specifies the fit range for the color map for interaction strength. |
impLims |
Specifies the fit range for the color map for importance. |
angle |
The angle to display the x-axis labels. |
A heatmap plot showing variable importance on the diagonal and variable interaction on the off-diagonal.
library(ranger) aq <- na.omit(airquality) rF <- ranger(Ozone ~ ., data = aq, importance = "permutation") myMat <- vivi(fit = rF, data = aq, response = "Ozone") viviHeatmap(myMat)
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.