autoplot {bayesnec} | R Documentation |
bayesnec standard ggplot2 plotting method
Description
bayesnec
standard ggplot2
plotting method.
Usage
## S3 method for class 'bayesnecfit'
autoplot(object, ..., nec = TRUE, ecx = FALSE, xform = identity)
## S3 method for class 'bayesmanecfit'
autoplot(
object,
...,
nec = TRUE,
ecx = FALSE,
xform = identity,
all_models = FALSE,
plot = TRUE,
ask = TRUE,
newpage = TRUE,
multi_facet = TRUE
)
Arguments
object |
An object of class |
... |
Additional arguments to be passed to |
nec |
Should NEC values be added to the plot? Defaults to TRUE. |
ecx |
Should ECx values be added to the plot? Defaults to FALSE.. |
xform |
A function to apply to the returned estimated concentration values. |
all_models |
Should all individual models be plotted separately\ (defaults to FALSE) or should model averaged predictions be plotted instead? |
plot |
Should output |
ask |
Indicates if the user is prompted before a new page is plotted.
Only relevant if |
newpage |
Indicates if the first set of plots should be plotted to a
new page. Only relevant if |
multi_facet |
Should all plots be plotted in one single panel via facets? Defaults to TRUE. |
Value
A ggplot
object.
Examples
## Not run:
library(brms)
nec4param <- pull_out(manec_example, "nec4param")
autoplot(nec4param)
autoplot(nec4param, nec = FALSE)
autoplot(nec4param, ecx = TRUE, ecx_val = 50)
# plot model averaged predictions
autoplot(manec_example)
# plot all panels together
autoplot(manec_example, ecx = TRUE, ecx_val = 50, all_models = TRUE)
## End(Not run)
## Not run:
# plots multiple models, one at a time, with interactive prompt
autoplot(manec_example, ecx = TRUE, ecx_val = 50, all_models = TRUE,
multi_facet = FALSE)
## End(Not run)