View source: R/plot_point_ci.R
plot_point_ci | R Documentation |
Draws point estimates with confidence intervals
plot_point_ci(
point,
lb,
ub,
labels,
data,
vertical_lines = NULL,
col = NULL,
xlim = NULL,
...
)
point |
Column name or column number for the point estimate variable in |
lb , ub |
Column name or column number for the lower/upper bound variable in |
labels |
Column name or column number for estimate labels in |
data |
A data.frame object with point, lower bound, and upper bound estimates |
vertical_lines |
A numeric vector or scalar. Draws a reference line at each value in |
col |
NULL or column name or column number. If NULL, all estimates will be plotted black. If a column name or column number is provided, estimates will be plotted according to the color provided in the corresponding column of |
xlim |
NULL or numeric couplet. Providing a numeric couplet will set the xlim of the plot. |
... |
Additional options set to |
ed <- data.frame(
variable = c("Age", "Gender: Male")
, beta = c("1","1.3")
, lb = c(".5",".4")
, ub = c("1.5","2.2")
, col = c("darkred","navy")
, stringsAsFactors = FALSE)
plot_point_ci(
point = "beta"
, lb = "lb"
, ub = "ub"
, labels = "variable"
, data = ed
, vertical_lines = 0
, col = "col"
, xlim = c(-1,3)
, pch = 16
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.