View source: R/plot_explainbartMachine.R
plot.ExplainbartMachine | R Documentation |
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.
## S3 method for class 'ExplainbartMachine'
plot(
x,
average = NULL,
type = NULL,
num_post = NULL,
plot.flag = TRUE,
adjust = FALSE,
probs = 0.95,
title = NULL,
...
)
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 |
The plot is returned based on the specified option.:
out |
If average is |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.