plot.see_hdi | R Documentation |
The plot()
method for the bayestestR::hdi()
and related
function.
## S3 method for class 'see_hdi'
plot(
x,
data = NULL,
show_intercept = FALSE,
show_zero = TRUE,
show_title = TRUE,
n_columns = 1,
...
)
x |
An object. |
data |
The original data used to create this object. Can be a statistical model. |
show_intercept |
Logical, if |
show_zero |
Logical. If |
show_title |
Logical. If |
n_columns |
For models with multiple components (like fixed and random,
count and zero-inflated), defines the number of columns for the
panel-layout. If |
... |
Arguments passed to or from other methods. |
A ggplot2-object.
library(rstanarm)
library(bayestestR)
set.seed(123)
m <- suppressWarnings(stan_glm(Sepal.Length ~ Petal.Width * Species, data = iris, refresh = 0))
result <- bayestestR::hdi(m)
result
plot(result)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.