plot_point_ci: Coefficient Plot

Description Usage Arguments Examples

View source: R/plot_point_ci.R

Description

Draws point estimates with confidence intervals

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
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

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
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 June 18, 2020, 11:10 a.m.