theme_pubh {pubh} | R Documentation |
A theme for huxtables This function quickly set a default style for a huxtable.
Description
A theme for huxtables This function quickly set a default style for a huxtable.
Usage
theme_pubh(ht, rw = 1)
Arguments
ht |
A huxtable object. |
rw |
A numeric vector with the rows on which a bottom border is desired. |
Details
theme_pubh
is a variation of theme_article
with the added flexibility
of adding a bottom border line at desired row numbers.
Examples
require(dplyr, quietly = TRUE)
data(Oncho)
Oncho %>%
select(area, mf) %>%
cross_tbl(by = "area") %>%
theme_pubh(2)
data(Bernard)
t1 <- estat(~ apache | fate, data = Bernard)
t2 <- estat(~ o2del | fate, data = Bernard)
rbind(t1, t2) %>%
as_hux() %>%
theme_pubh(c(1, 3))
[Package pubh version 1.3.2 Index]