Adds model-implied density lines to an existing zplot.
# S3 method for 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,
...
)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.
a zplot_brma object.
graphics system: "base" or "ggplot".
Defaults to "base".
quantiles for credible intervals. Defaults to c(.025, .975).
maximum posterior samples for density. Defaults to 10000.
Use Inf to use all posterior samples.
whether to show credible interval bands. Defaults to TRUE.
whether to remove bias adjustments. Defaults to FALSE.
z-value range for density. Defaults to -6 and 6.
step size for density points. Defaults to 0.05.
number of density points (alternative to by).
line color. Defaults to "black".
whether to return data instead of plotting. Defaults to FALSE.
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.
plot.zplot_brma(), hist.zplot_brma()