Italicize document titles in a table or figure
Arguments
- x
A table data object created with
tabulize()or a figure created withvisualize()- col
The column to italicize
Examples
library(gt)
library(tmtyro)
penguins_gt <-
penguins |>
select(-year) |>
summarize(
across(
matches("_len$|_dep$"), mean, na.rm = TRUE),
.by = c(species, island, sex)) |>
gt() |>
fmt_number() |>
tab_spanner(
"bill",
columns = starts_with("bill_")) |>
tab_spanner(
"flipper",
starts_with("flip")) |>
cols_label(
bill_len = "length",
bill_dep = "depth",
flipper_len = "length") |>
sub_missing()
penguins_gt |>
collapse_rows(species) |>
collapse_rows(island) |>
italicize_titles(species)See also
Other table helpers:
collapse_rows(),
tabulize()
Other visualizing helpers:
change_colors(),
plot_bigrams(),
plot_doc_word_bars(),
plot_doc_word_heatmap(),
plot_hapax(),
plot_hir(),
plot_tf_idf(),
plot_topic_bars(),
plot_topic_distributions(),
plot_topic_wordcloud(),
plot_ttr(),
plot_vocabulary(),
theme_tmtyro(),
visualize()
