themes

0th

Percentile

Theme a huxtable

These functions quickly set default styles for a huxtable.

Usage
theme_basic(ht, header_row = TRUE, header_col = TRUE)

theme_striped(ht, stripe = grDevices::grey(0.9), header_row = TRUE, header_col = TRUE)

theme_article(ht, header_row = TRUE, header_col = TRUE)

Arguments
ht

A huxtable object.

header_row

Logical: style first row differently?

header_col

Logical: style first column differently?

stripe

Background colour for alternate rows

Details

theme_basic is a simple theme with a simple line under headers.

theme_striped uses different backgrounds for alternate rows, and for headers.

theme_article is similar to the style of many scientific journals. It sets horizontal lines above and below the table.

Value

The huxtable object, appropriately styled.

Aliases
  • themes
  • theme_basic
  • theme_striped
  • theme_article
Examples
# NOT RUN {
ht <- huxtable(a = 1:5, b = 1:5)
theme_striped(ht)
# }
Documentation reproduced from package huxtable, version 1.2.0, License: MIT + file LICENSE

Community examples

Looks like there are no examples yet.