forked from rstudio/gt
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathAPI
63 lines (63 loc) · 4.69 KB
/
API
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
adjust_luminance(colors, steps)
as_latex(data)
as_raw_html(data, inline_css = TRUE)
as_rtf(data)
cells_column_labels(columns, groups)
cells_data(columns = NULL, rows = NULL)
cells_group(groups)
cells_stub(rows = NULL)
cells_styles(bkgd_color = NULL, text_color = NULL, text_font = NULL, text_size = NULL, text_align = NULL, text_style = NULL, text_weight = NULL, text_stretch = NULL, text_indent = NULL, text_decorate = NULL, text_transform = NULL)
cells_summary(groups = NULL, columns = NULL, rows = NULL)
cells_title(groups = c("title", "subtitle"))
cols_align(data, align = c("auto", "left", "center", "right"), columns = TRUE)
cols_hide(data, columns)
cols_label(data, ..., .list = list2, ...)
cols_merge(data, col_1, col_2, pattern = "{1} {2}")
cols_merge_range(data, col_begin, col_end)
cols_merge_uncert(data, col_val, col_uncert)
cols_move(data, columns, after)
cols_move_to_end(data, columns)
cols_move_to_start(data, columns)
cols_split_delim(data, delim, columns = NULL)
data_color(data, columns, colors, alpha = NULL, apply_to = "bkgd", autocolor_text = TRUE)
escape_latex(text)
extract_summary(data)
fmt(data, columns = NULL, rows = NULL, fns)
fmt_currency(data, columns, rows = NULL, currency = "USD", use_subunits = TRUE, negative_val = "signed", decimals = NULL, use_seps = TRUE, scale_by = 1, pattern = "{x}", sep_mark = ",", dec_mark = ".", placement = "left", incl_space = FALSE, locale = NULL)
fmt_date(data, columns, rows = NULL, date_style = 2)
fmt_datetime(data, columns, rows = NULL, date_style = 2, time_style = 2)
fmt_missing(data, columns, rows = NULL, missing_text = "---")
fmt_number(data, columns, rows = NULL, decimals = 2, drop_trailing_zeros = FALSE, negative_val = "signed", use_seps = TRUE, scale_by = 1, pattern = "{x}", sep_mark = ",", dec_mark = ".", locale = NULL)
fmt_passthrough(data, columns, rows = NULL, escape = TRUE, pattern = "{x}")
fmt_percent(data, columns, rows = NULL, decimals = 2, drop_trailing_zeros = FALSE, negative_val = "signed", use_seps = TRUE, pattern = "{x}", sep_mark = ",", dec_mark = ".", incl_space = FALSE, placement = "right", locale = NULL)
fmt_scientific(data, columns, rows = NULL, decimals = 2, drop_trailing_zeros = FALSE, scale_by = 1, pattern = "{x}", sep_mark = ",", dec_mark = ".", locale = NULL)
fmt_time(data, columns, rows = NULL, time_style = 2)
ggplot_image(plot_object, height = 100, aspect_ratio = 1)
gt(data, rowname_col = "rowname", groupname_col = "groupname", rownames_to_stub = FALSE, stub_group.sep = getOption("gt.stub_group.sep", "-"))
gt_latex_dependencies()
gt_output(outputId)
gt_preview(data, top_n = 5, bottom_n = 1, incl_rownums = TRUE)
gtsave(data, filename, ...)
html(text, ...)
info_currencies(type = c("code", "symbol"), begins_with = NULL)
info_date_style()
info_paletteer(color_pkgs = NULL)
info_time_style()
local_image(file, height = 30)
md(text)
pct(x)
px(x)
render_gt(expr, env = parent.frame, quoted = FALSE, outputArgs = list)
row_group_order(data, groups)
summary_rows(data, groups = NULL, columns = NULL, fns, missing_text = "---", formatter = fmt_number, ...)
tab_footnote(data, footnote, locations)
tab_header(data, title, subtitle = NULL)
tab_options(data, table.width = NULL, table.font.size = NULL, table.background.color = NULL, table.border.top.style = NULL, table.border.top.width = NULL, table.border.top.color = NULL, heading.background.color = NULL, heading.title.font.size = NULL, heading.subtitle.font.size = NULL, heading.border.bottom.style = NULL, heading.border.bottom.width = NULL, heading.border.bottom.color = NULL, column_labels.background.color = NULL, column_labels.font.size = NULL, column_labels.font.weight = NULL, stub_group.background.color = NULL, stub_group.font.size = NULL, stub_group.font.weight = NULL, stub_group.border.top.style = NULL, stub_group.border.top.width = NULL, stub_group.border.top.color = NULL, stub_group.border.bottom.style = NULL, stub_group.border.bottom.width = NULL, stub_group.border.bottom.color = NULL, field.border.top.style = NULL, field.border.top.width = NULL, field.border.top.color = NULL, field.border.bottom.style = NULL, field.border.bottom.width = NULL, field.border.bottom.color = NULL, row.padding = NULL, summary_row.background.color = NULL, summary_row.padding = NULL, summary_row.text_transform = NULL, footnote.sep = NULL, footnote.glyph = NULL, footnote.font.size = NULL, footnote.padding = NULL, sourcenote.font.size = NULL, sourcenote.padding = NULL, row.striping.include_stub = NULL, row.striping.include_field = NULL)
tab_row_group(data, group = NULL, rows = NULL, others = NULL)
tab_source_note(data, source_note)
tab_spanner(data, label, columns)
tab_stubhead_label(data, label)
tab_style(data, style, locations)
test_image(type = c("png", "svg"))
text_transform(data, locations, fn)
web_image(url, height = 30)