View source: R/plot.explainbarp.R
plot.Explainbarp | R Documentation |
This function is implemented to visualize the computed Shapley values in
various ways for objects of the Explainbarp
class. The type of plot
generated depends on the input parameters.
Since the BARP model is designed to be visualized for a single stratum,
the user must specify both the stratum variable and the value of the stratum to be visualized.
## S3 method for class 'Explainbarp'
plot(
x,
average = NULL,
type = NULL,
num_post = NULL,
plot.flag = TRUE,
adjust = FALSE,
probs = 0.95,
title = NULL,
geo.unit = NULL,
geo.id = NULL,
...
)
x |
An |
average |
Input the reference value for calculating the mean of the object's phi list.
|
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 |
geo.unit |
Enter the name of the stratification variable used in post stratification. |
geo.id |
Enter one value of interest among the values of the stratification variable. |
... |
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.