Create custom color themes that can be used with wb_set_base_colors()
. The color input will be checked with wb_color()
, so it must be either a color R from grDevices::colors()
or a hex value.
Default values for the dark argument are: black
, white
, darkblue
and lightgray
. For the accent argument, the six inner values of grDevices::palette()
. The link argument uses blue
and purple
by default for active and visited links.
See also
Other style creating functions:
create_border()
,
create_cell_style()
,
create_dxfs_style()
,
create_fill()
,
create_font()
,
create_numfmt()
,
create_tablestyle()
Examples
colors <- create_colors_xml()
wb <- wb_workbook()$add_worksheet()$set_base_colors(xml = colors)