# Extending 'gt' for Beautiful HTML Tables

## Documentation for package ‘gtExtras’ version 0.4.5

- DESCRIPTION file.

## Help Pages

add_badge_color | Add badge color
add_pcttile_plot | Create a dot plot from 0 to 100
add_point_plot | Create a dot plot from any range - add_point_plot
add_text_img | Add text and an image to the left or right of it
create_sum_table | Create a summary table from a dataframe
fa_icon_repeat | Repeat '{fontawesome}' icons and convert to HTML
fmt_pad_num | Format numeric columns to align at decimal point without trailing zeroes
fmt_pct_extra | Convert to percent and show less than 1% as <1% in grey
fmt_symbol_first | Aligning first-row text only
generate_df | Generate pseudorandom dataframes with specific parameters
get_row_index | Get underlying row index for gt tables
gtsave_extra | Use webshot2 to save a gt table as a PNG
gt_add_divider | Add a dividing border to an existing 'gt' table.
gt_alert_icon | Insert an alert icon to a specific column
gt_badge | Add a 'badge' based on values and palette
gt_color_box | Add a small color box relative to the cell value.
gt_color_rows | Add scaled colors according to numeric values or categories/factors
gt_double_table | Take data, a gt-generating function, and create a list of two tables
gt_duplicate_column | Duplicate an existing column in a gt table
gt_fa_column | Add '{fontawesome}' icons inside a '{gt}' column.
gt_fa_rank_change | Add rank change indicators to a gt table
gt_fa_rating | Add rating "stars" to a gt column
gt_fa_repeats | Repeat '{fontawesome}' icons based on an integer.
gt_highlight_cols | Add color highlighting to a specific column(s)
gt_highlight_rows | Add color highlighting to a specific row
gt_hulk_col_numeric | Apply 'hulk' palette to specific columns in a gt table.
gt_hyperlink | Add a basic hyperlink in a gt table
gt_img_border | Create an identifier line border at the bottom of an image
gt_img_circle | Create circular border around an image
gt_img_multi_rows | Add multiple local or web images into rows of a 'gt' table
gt_img_rows | Add local or web images into rows of a 'gt' table
gt_index | Return the underlying data, arranged by the internal index
gt_label_details | Add a simple table with column names and matching labels
gt_merge_stack | Merge and stack text from two columns in 'gt'
gt_merge_stack_color | Merge and stack text with background coloring from two columns in 'gt'
gt_plt_bar | Add bar plots into rows of a 'gt' table
gt_plt_bar_pct | Add HTML-based bar plots into rows of a 'gt' table
gt_plt_bar_stack | Add a percent stacked barchart in place of existing data.
gt_plt_bullet | Create an inline 'bullet chart' in a gt table
gt_plt_conf_int | Plot a confidence interval around a point
gt_plt_dist | Add distribution plots into rows of a 'gt' table
gt_plt_dot | Add a color dot and thin bar chart to a table
gt_plt_percentile | Create a dot plot for percentiles
gt_plt_point | Create a point plot in place of each value.
gt_plt_sparkline | Add sparklines into rows of a 'gt' table
gt_plt_summary | Create a summary table from a dataframe
gt_plt_winloss | Add win loss point plot into rows of a 'gt' table
gt_theme_538 | Apply FiveThirtyEight theme to a gt table
gt_theme_dark | Apply dark theme to a 'gt' table
gt_theme_dot_matrix | Apply dot matrix theme to a gt table
gt_theme_espn | Apply ESPN theme to a gt table
gt_theme_excel | Apply Excel-style theme to an existing gt table
gt_theme_guardian | Apply Guardian theme to a 'gt' table
gt_theme_nytimes | Apply NY Times theme to a 'gt' table
gt_theme_pff | Apply a table theme like PFF
gt_two_column_layout | Create a two-column layout from a list of two gt tables
img_header | Add images as the column label for a table
last_row_id | Get last row id/index even by group
n_decimals | Count number of decimals
pad_fn | Pad a vector of numbers to align on the decimal point.
plot_data | Create inline plots for a summary table
tab_style_by_grp | Add table styling to specific rows by group
with_tooltip | A helper to add basic tooltip inside a gt table