Example Table with Select Cells Shaded
Authors: Ben Staton
Affiliations:
Abstract: This example produces a publication-quality table that includes selected cells shaded.
Full Description: This example showcases these features within the knitr::kable() %>% kableExtra::funs() framework:
- LaTeX math environments
- Shading of select cells
- Grouped columns
- Multi-line cells
The content in this example is part of a supplement to a manuscript currently in preparation.
Here is a preview of the output:

Table Type: static-print
Submission Type: Single Table Example
Table: https://github.com/bstaton1/pdf-tables/blob/main/colors-table/colors-table.pdf
Repo: https://github.com/bstaton1/pdf-tables/tree/main/colors-table
RStudio Cloud:
DT package used:
gt package used:
reactable package used:
flextable package used:
huxtable package used:
kableExtra package used: true
Other packages: