Creates a coefficient plot with estimates and confidence intervals using ggplot2.
coef_plot(
estimate,
lwr1,
upr1,
labels = NULL,
lwr2 = NULL,
upr2 = NULL,
text = TRUE,
text.size = 3,
round = 2,
coord.flip = FALSE,
title = NULL,
legends = c("Estimate", "Bounds", "Conf. Bounds"),
h0 = 0,
h0.color = "darkorange",
bar.type = c("error_bar", "linerange"),
err.width = 0.1,
xlab = "Parameter",
ylab = "Value",
lwd = c(0.625, 1.25),
colors = c("black", "blue", "red")
)numeric vector of point estimates.
numeric vector of lower bounds for the first interval.
numeric vector of upper bounds for the first interval.
optional character vector of labels for each coefficient.
optional numeric vector of lower bounds for the second interval.
optional numeric vector of upper bounds for the second interval.
logical. Should text labels be added? Default is TRUE.
numeric. Size of text labels. Default is 3.
integer. Number of digits to round displayed values. Default is 2.
logical. Should the plot coordinates be flipped? Default is FALSE.
optional character string for the plot title.
character vector of legend labels. Default is c("Estimate", "Bounds", "Conf. Bounds").
numeric. Value for the null hypothesis line. Default is 0. Set to NULL to suppress.
character. Color of the null hypothesis line. Default is "darkorange".
character. Type of interval display: "error_bar" or "linerange".
numeric. Width of error bars. Default is 0.1.
character. X-axis label. Default is "Parameter".
character. Y-axis label. Default is "Value".
numeric vector of line widths.
character vector of colors.
A ggplot object.