plot_point_ci: Coefficient Plot

View source: R/plot_point_ci.R

plot_point_ciR Documentation

Coefficient Plot

Description

Draws point estimates with confidence intervals

Usage

plot_point_ci(
  point,
  lb,
  ub,
  labels,
  data,
  vertical_lines = NULL,
  col = NULL,
  xlim = NULL,
  ...
)

Arguments

point

Column name or column number for the point estimate variable in data

lb, ub

Column name or column number for the lower/upper bound variable in data

labels

Column name or column number for estimate labels in data

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 vertical_lines.

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 data

xlim

NULL or numeric couplet. Providing a numeric couplet will set the xlim of the plot.

...

Additional options set to points and lines

Examples

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
)

thomasgstewart/tgsify documentation built on Oct. 26, 2024, 8:15 p.m.