gg_two_column_consort_subgroup | R Documentation |
This function creates a two column consort figure with "before" and "after" population N as well as subgroup population Ns.
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 )
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. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.