gg_two_column_consort_subgroup: gg_two_column_consort_subgroup

gg_two_column_consort_subgroupR Documentation

gg_two_column_consort_subgroup

Description

This function creates a two column consort figure with "before" and "after" population N as well as subgroup population Ns.

Usage

gg_two_column_consort_subgroup(
  data,
  var,
  var2,
  box_width = 0.4,
  box_height = 0.4,
  box2_width = 0.22,
  box2_height = 0.8,
  top_box_text,
  date = NULL
)

Arguments

data

data.frame, data with consort variable

var

string, name of consort variable that is in the format "col row description"

var2

string, name of consort variable for subgroup population that is in the format "col row description"

box_width

width of subgroup boxes. default is 0.22.

box_height

height of subgroup boxes. default is 0.8.

top_box_text

string, text to display in top box of diagram

date

string, date of data pull. if NULL, won't display date.


olsonma/mollr documentation built on Aug. 2, 2022, 9:17 p.m.