Package: gtExtras 0.5.0.9005

gtExtras: Extending 'gt' for Beautiful HTML Tables

Provides additional functions for creating beautiful tables with 'gt'. The functions are generally wrappers around boilerplate or adding opinionated niche capabilities and helpers functions.

Authors:Thomas Mock [aut, cre, cph], Daniel D. Sjoberg [ctb]

gtExtras_0.5.0.9005.tar.gz
gtExtras_0.5.0.9005.zip(r-4.5)gtExtras_0.5.0.9005.zip(r-4.4)gtExtras_0.5.0.9005.zip(r-4.3)
gtExtras_0.5.0.9005.tgz(r-4.4-any)gtExtras_0.5.0.9005.tgz(r-4.3-any)
gtExtras_0.5.0.9005.tar.gz(r-4.5-noble)gtExtras_0.5.0.9005.tar.gz(r-4.4-noble)
gtExtras_0.5.0.9005.tgz(r-4.4-emscripten)gtExtras_0.5.0.9005.tgz(r-4.3-emscripten)
gtExtras.pdf |gtExtras.html
gtExtras/json (API)
NEWS

# Install 'gtExtras' in R:
install.packages('gtExtras', repos = c('https://jthomasmock.r-universe.dev', 'https://cloud.r-project.org'))

Peer review:

Bug tracker:https://github.com/jthomasmock/gtextras/issues

On CRAN:

data-sciencedata-visualizationdatascienceggplot2gtplotssparklinesparkline-graphssparklinestables

73 exports 192 stars 6.47 score 69 dependencies 2 dependents 2.0k scripts 128.1k downloads

Last updated 5 months agofrom:dc2da410b0. Checks:OK: 1 WARNING: 6. Indexed: yes.

TargetResultDate
Doc / VignettesOKSep 02 2024
R-4.5-winWARNINGSep 02 2024
R-4.5-linuxWARNINGSep 02 2024
R-4.4-winWARNINGSep 02 2024
R-4.4-macWARNINGSep 02 2024
R-4.3-winWARNINGSep 02 2024
R-4.3-macWARNINGSep 02 2024

Exports:%>%add_text_imgall_ofany_ofcontainscreate_sum_tableends_witheverythingfmt_pad_numfmt_pct_extrafmt_symbol_firstgenerate_dfget_row_indexgt_add_dividergt_alert_icongt_badgegt_color_boxgt_color_rowsgt_double_tablegt_duplicate_columngt_fa_columngt_fa_rank_changegt_fa_ratinggt_fa_repeatsgt_highlight_colsgt_highlight_rowsgt_hulk_col_numericgt_hyperlinkgt_img_bordergt_img_circlegt_img_multi_rowsgt_img_rowsgt_indexgt_label_detailsgt_merge_stackgt_merge_stack_colorgt_plt_bargt_plt_bar_pctgt_plt_bar_stackgt_plt_bulletgt_plt_conf_intgt_plt_distgt_plt_dotgt_plt_dumbbellgt_plt_percentilegt_plt_pointgt_plt_sparklinegt_plt_summarygt_plt_winlossgt_reprex_imagegt_theme_538gt_theme_darkgt_theme_dot_matrixgt_theme_espngt_theme_excelgt_theme_guardiangt_theme_nytimesgt_theme_pffgt_two_column_layoutgtsave_extraimg_headerlast_colmatchesmutaten_decimalsnum_rangeone_ofpad_fnselectstarts_withtab_style_by_grpvarswith_tooltip

Dependencies:base64encbigDbitopsbslibcachemclicolorspacecommonmarkcurldigestdplyrevaluatefansifarverfastmapfontawesomefsgenericsggplot2gluegtgtablehighrhtmltoolshtmlwidgetsisobandjquerylibjsonlitejuicyjuiceknitrlabelinglatticelifecyclemagrittrmarkdownMASSMatrixmemoisemgcvmimemunsellnlmepaletteerpillarpkgconfigprismaticR6rappdirsRColorBrewerRcppreactablereactRrematch2rlangrmarkdownrstudioapisassscalestibbletidyselecttinytexutf8V8vctrsviridisLitewithrxfunxml2yaml

Readme and manuals

Help Manual

Help pageTopics
Add badge coloradd_badge_color
Create a dot plot from 0 to 100add_pcttile_plot
Create a dot plot from any range - add_point_plotadd_point_plot
Add text and an image to the left or right of itadd_text_img
Create a summary table from a dataframecreate_sum_table
Repeat '{fontawesome}' icons and convert to HTMLfa_icon_repeat
Format numeric columns to align at decimal point without trailing zeroesfmt_pad_num
Convert to percent and show less than 1% as <1% in greyfmt_pct_extra
Aligning first-row text onlyfmt_symbol_first
Generate pseudorandom dataframes with specific parametersgenerate_df
Get underlying row index for gt tablesget_row_index
Add a dividing border to an existing 'gt' table.gt_add_divider
Insert an alert icon to a specific columngt_alert_icon
Add a 'badge' based on values and palettegt_badge
Add a small color box relative to the cell value.gt_color_box
Add scaled colors according to numeric values or categories/factorsgt_color_rows
Take data, a gt-generating function, and create a list of two tablesgt_double_table
Duplicate an existing column in a gt tablegt_duplicate_column
Add '{fontawesome}' icons inside a '{gt}' column.gt_fa_column
Add rank change indicators to a gt tablegt_fa_rank_change
Add rating "stars" to a gt columngt_fa_rating
Repeat '{fontawesome}' icons based on an integer.gt_fa_repeats
Add color highlighting to a specific column(s)gt_highlight_cols
Add color highlighting to a specific rowgt_highlight_rows
Apply 'hulk' palette to specific columns in a gt table.gt_hulk_col_numeric
Add a basic hyperlink in a gt tablegt_hyperlink
Create an identifier line border at the bottom of an imagegt_img_border
Create circular border around an imagegt_img_circle
Add multiple local or web images into rows of a 'gt' tablegt_img_multi_rows
Add local or web images into rows of a 'gt' tablegt_img_rows
Return the underlying data, arranged by the internal indexgt_index
Add a simple table with column names and matching labelsgt_label_details
Merge and stack text from two columns in 'gt'gt_merge_stack
Merge and stack text with background coloring from two columns in 'gt'gt_merge_stack_color
Add bar plots into rows of a 'gt' tablegt_plt_bar
Add HTML-based bar plots into rows of a 'gt' tablegt_plt_bar_pct
Add a percent stacked barchart in place of existing data.gt_plt_bar_stack
Create an inline 'bullet chart' in a gt tablegt_plt_bullet
Plot a confidence interval around a pointgt_plt_conf_int
Add distribution plots into rows of a 'gt' tablegt_plt_dist
Add a color dot and thin bar chart to a tablegt_plt_dot
Add a dumbbell plot in place of two columnsgt_plt_dumbbell
Create a dot plot for percentilesgt_plt_percentile
Create a point plot in place of each value.gt_plt_point
Add sparklines into rows of a 'gt' tablegt_plt_sparkline
Create a summary table from a dataframegt_plt_summary
Add win loss point plot into rows of a 'gt' tablegt_plt_winloss
Render 'gt' Table to Temporary png Filegt_reprex_image
Apply FiveThirtyEight theme to a gt tablegt_theme_538
Apply dark theme to a 'gt' tablegt_theme_dark
Apply dot matrix theme to a gt tablegt_theme_dot_matrix
Apply ESPN theme to a gt tablegt_theme_espn
Apply Excel-style theme to an existing gt tablegt_theme_excel
Apply Guardian theme to a 'gt' tablegt_theme_guardian
Apply NY Times theme to a 'gt' tablegt_theme_nytimes
Apply a table theme like PFFgt_theme_pff
Create a two-column layout from a list of two gt tablesgt_two_column_layout
Use webshot2 to save a gt table as a PNGgtsave_extra
Add images as the column label for a tableimg_header
Get last row id/index even by grouplast_row_id
Count number of decimalsn_decimals
Pad a vector of numbers to align on the decimal point.pad_fn
Create inline plots for a summary tableplot_data
Add table styling to specific rows by grouptab_style_by_grp
A helper to add basic tooltip inside a gt tablewith_tooltip