The plot() method for the bayestestR::si().
# S3 method for class 'see_si'
plot(
x,
color_si = "#0171D3",
alpha_si = 0.2,
show_intercept = FALSE,
support_only = FALSE,
...
)An object.
Character specifying color of SI ribbon.
Numeric value specifying Transparency level of SI ribbon.
Logical, if TRUE, the intercept-parameter is included
in the plot. By default, it is hidden because in many cases the
intercept-parameter has a posterior distribution on a very different
location, so density curves of posterior distributions for other parameters
are hardly visible.
Logical. Decides whether to plot only the support data,
or show the "raw" prior and posterior distributions? Only applies when
plotting bayestestR::si().
Arguments passed to or from other methods.
A ggplot2-object.
if (FALSE) { # identical(Sys.getenv("NOT_CRAN"), "true") && require("rstanarm")
library(rstanarm)
library(bayestestR)
set.seed(123)
m <<- suppressWarnings(stan_glm(Sepal.Length ~ Petal.Width * Species, data = iris, refresh = 0))
result <- si(m, verbose = FALSE)
result
plot(result)
}