viviBartPlot.Rd
Plots a Heatmap showing variable importance on the diagonal and variable interaction on the off-diagonal with uncertainty included.
viviBartPlot( matrix, intPal = NULL, impPal = NULL, intLims = NULL, impLims = NULL, uncIntLims = NULL, uncImpLims = NULL, unc_levels = 4, max_desat = 0.6, pow_desat = 0.2, max_light = 0.6, pow_light = 1, angle = 0, border = FALSE, label = NULL )
matrix | Matrices, such as that returned by viviBartMatrix, of values to be plotted. |
---|---|
intPal | A vector of colours to show interactions, for use with scale_fill_gradientn. Palette number has to be 2^x/2 |
impPal | A vector of colours to show importance, for use with scale_fill_gradientn. Palette number has to be 2^x/2 |
intLims | Specifies the fit range for the color map for interaction strength. |
impLims | Specifies the fit range for the color map for importance. |
uncIntLims | Specifies the fit range for the color map for interaction strength uncertainties. |
uncImpLims | Specifies the fit range for the color map for importance uncertainties. |
unc_levels | The number of uncertainty levels |
max_desat | The maximum desaturation level. |
pow_desat | The power of desaturation level. |
max_light | The maximum light level. |
pow_light | The power of light level. |
angle | The angle to rotate the x-axis labels. Defaults to zero. |
border | Logical. If TRUE then draw a black border around the diagonal elements. |
label | legend label for the uncertainty measure. |
Either a heatmap, VSUP, or quantile heatmap plot.
if (FALSE) { df_trees <- extractTreeData(model = my_model, data = my_data) vsupMat <- viviBartMatrix(df_trees, type = 'vsup', metric = 'propMean', metricError = "CV") viviBartPlot(vsupMat, label = 'CV') }