plot.see_si | R Documentation |
The plot()
method for the bayestestR::si()
.
## S3 method for class 'see_si'
plot(
x,
si_color = "#0171D3",
si_alpha = 0.2,
show_intercept = FALSE,
support_only = FALSE,
...
)
x |
An object. |
si_color |
Character specifying color of SI ribbon. |
si_alpha |
Numeric value specifying Transparency level of SI ribbon. |
show_intercept |
Logical, if |
support_only |
Logical. Decides whether to plot only the support data,
or show the "raw" prior and posterior distributions? Only applies when
plotting |
... |
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 <- si(m, verbose = FALSE)
result
plot(result)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.