colorize chunk
The function is producing a chunk with a font in color.
colorize(x, color)
x |
value, if a chunk, the chunk will be updated |
color |
color to use as text highlighting color as character vector. |
This is a sugar function that ease the composition of complex
labels made of different formattings. It should be used inside a
call to as_paragraph().
Other chunk elements for paragraph:
as_bracket(),
as_b(),
as_chunk(),
as_equation(),
as_highlight(),
as_image(),
as_i(),
as_sub(),
as_sup(),
gg_chunk(),
hyperlink_text(),
linerange(),
lollipop(),
minibar(),
plot_chunk()
ft <- flextable( head(iris),
col_keys = c("Sepal.Length", "dummy") )
ft <- compose(ft, j = "dummy",
value = as_paragraph(colorize(Sepal.Length, color = "red")) )
ftPlease choose more modern alternatives, such as Google Chrome or Mozilla Firefox.