washi_flextable {washi} | R Documentation |
WaSHI flextable style
Description
Creates a flextable in WaSHI's style.
Usage
washi_flextable(
data,
cols_bold = NULL,
header_font = "Lato",
body_font = "Poppins",
header_font_color = "white",
header_bg_color = washi_pal[["standard"]][["green"]],
border_color = washi_pal[["standard"]][["tan"]]
)
Arguments
data |
Dataframe for the table. |
cols_bold |
Numeric indices of columns to bold. Defaults to
|
header_font |
Font family for header text. Defaults to "Lato". |
body_font |
Font family for table body text. Defaults to "Poppins". |
header_font_color |
Hexcode color for header font. Defaults to white. |
header_bg_color |
Hexcode color for header background. Defaults to WaSHI green. |
border_color |
Hexcode color for horizontal borders. Defaults to WaSHI tan. |
Value
A flextable formatted in WaSHI's style.
Examples
subset(
example_data_wide,
select = c(
"sampleId",
"county",
"crop",
"totalN_%",
"totalC_%"
)
) |>
washi_flextable(cols_bold = 1)
[Package washi version 0.2.0 Index]