Add, increase, or reduce indentation for columns.
modify_indent(x, columns, rows = NULL, indent = 4L, double_indent, undo)(gtsummary)
A gtsummary object
(tidy-select)
Selector of columns in x$table_body
(predicate expression)
Predicate expression to select rows in x$table_body.
Review rows argument details.
(integer)
An integer indicating how many space to indent text
a gtsummary table
Other Advanced modifiers:
modify_column_merge(),
modify_table_styling()
# remove indentation from `tbl_summary()`
trial |>
tbl_summary(include = grade) |>
modify_indent(columns = label, indent = 0L)
Characteristic
N = 2001
1 n (%)
# increase indentation in `tbl_summary`
trial |>
tbl_summary(include = grade) |>
modify_indent(columns = label, rows = !row_type %in% 'label', indent = 8L)
Characteristic
N = 2001
1 n (%)