plot.ExplainbartMachine {bartXViz} | R Documentation |
A function for visualizing the Shapley values of BART models
Description
The plot.ExplainbartMachine
function provides various visualization methods for Shapley values.
It is designed to visualize ExplainbartMachine
class objects, which contain Shapley values computed from models estimated using the bartMachine
function from the bartMachine.
The values and format used in the graph are determined based on the input parameters.
Usage
## S3 method for class 'ExplainbartMachine'
plot(
x,
average = NULL,
type = NULL,
num_post = NULL,
plot.flag = TRUE,
adjust = FALSE,
probs = 0.95,
title = NULL,
...
)
Arguments
x |
An |
average |
Input the reference value for calculating the mean of the object's |
type |
|
num_post |
To check the contribution of variables for a single posterior sample, enter a value within the number of posterior samples. |
plot.flag |
If |
adjust |
The default value is |
probs |
Enter the probability for the quantile interval. The default value is |
title |
The title of the plot, with a default value of |
... |
Additional arguments to be passed |
Value
The plot is returned based on the specified option.:
out |
If average is |