View source: R/plot-posterior-draws.R
plot_posterior_draws | R Documentation |
A plot of a sample of model fit draws from the posterior distribution from the expected mean and median quantile intervals.
plot_posterior_draws(
model,
newdata = NULL,
treatment_variable = NULL,
treatment_units = NULL,
treatment_from = NULL,
treatment_to = NULL,
response_variable = NULL,
response_units = NULL,
title = "Dose-Response Posterior Draws",
n = 50,
point_size = 0.75,
jitter_height = 0,
jitter_width = 0,
verbose = FALSE
)
model |
|
newdata |
|
treatment_variable |
|
treatment_units |
|
treatment_from |
|
treatment_to |
|
response_variable |
|
response_units |
|
title |
character name for the plot |
n |
|
point_size |
|
jitter_height |
|
jitter_width |
|
verbose |
|
ggplot2::ggplot object.
## Not run:
# Consider a model named my_model and data named my_data with a column
# named predictors containing multiple different perturbations.
plot_posterior_draws(
model = my_model,
newdata = my_data,
lower = -12,
upper = -3,
n = 50,
facet_var = predictors,
jitter_width = 0.10,
title = "Dose-Response Posterior Draws",
xlab = "Log[Molar]",
ylab = "Response")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.