View source: R/plot.point_estimates.R
plot.see_point_estimate | R Documentation |
The plot()
method for the bayestestR::point_estimate()
.
## S3 method for class 'see_point_estimate'
plot(
x,
data = NULL,
size_point = 2,
size_text = 3.5,
panel = TRUE,
show_labels = TRUE,
show_intercept = FALSE,
priors = FALSE,
priors_alpha = 0.4,
...
)
x |
An object. |
data |
The original data used to create this object. Can be a statistical model. |
size_point |
Numeric specifying size of point-geoms. |
size_text |
Numeric value specifying size of text labels. |
panel |
Logical, if |
show_labels |
Logical. If |
show_intercept |
Logical, if |
priors |
Logical. If |
priors_alpha |
Numeric value specifying alpha for the prior distributions. |
... |
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 <- point_estimate(m, centrality = "median")
result
plot(result)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.