powered by
These functions quickly set default styles for a huxtable.
theme_plain(ht, position = "left")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)
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)
A huxtable object.
'left', 'centre' or 'right'
Logical: style first row differently?
Logical: style first column differently?
Background colour for alternate rows
The huxtable object, appropriately styled.
theme_plain is a simple theme with a bold header, a grey striped background, and an outer border.
theme_plain
theme_basic just adds a border for header rows and/or columns.
theme_basic
theme_striped uses different backgrounds for alternate rows, and for headers.
theme_striped
theme_article is similar to the style of many scientific journals. It sets horizontal lines above and below the table.
theme_article
# NOT RUN { ht <- huxtable(a = 1:5, b = 1:5) theme_striped(ht) # }
Run the code above in your browser using DataLab