| lines.zplot_brma | R Documentation |
Adds model-implied density lines to an existing zplot.
## S3 method for class 'zplot_brma'
lines(
x,
plot_type = "base",
probs = c(0.025, 0.975),
max_samples = 10000,
plot_ci = TRUE,
extrapolate = FALSE,
from = -6,
to = 6,
by = 0.05,
length.out = NULL,
col = "black",
as_data = FALSE,
...
)
x |
a zplot_brma object. |
plot_type |
graphics system: |
probs |
quantiles for credible intervals. Defaults to |
max_samples |
maximum posterior samples for density. Defaults to 10000.
Use |
plot_ci |
whether to show credible interval bands. Defaults to |
extrapolate |
whether to remove bias adjustments. Defaults to |
from, to |
z-value range for density. Defaults to |
by |
step size for density points. Defaults to 0.05. |
length.out |
number of density points (alternative to |
col |
line color. Defaults to |
as_data |
whether to return data instead of plotting. Defaults to |
... |
additional graphical parameters. |
When extrapolate = FALSE, the density includes all bias adjustments
(PET/PEESE regression, selection weights) representing the fitted model.
When extrapolate = TRUE, bias adjustments are removed to show the
hypothetical distribution without publication bias. Under selection models,
the curve is scaled by inverse selection probability and need not integrate
to one.
NULL invisibly for base graphics, ggplot2 layers for ggplot,
or a data frame with columns x, y, y_lCI, y_uCI
if as_data = TRUE.
plot.zplot_brma(), hist.zplot_brma()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.