Learn R Programming

openxlsx2 (version 1.4)

wb_color: Helper to create a color

Description

Creates a wbColour object.

Usage

wb_color(
  name = NULL,
  auto = NULL,
  indexed = NULL,
  hex = NULL,
  theme = NULL,
  tint = NULL
)

Value

a wbColour object

Arguments

name

A name of a color known to R either as name or RGB/ARGB value.

auto

A boolean.

indexed

An indexed color value. This color has to be provided by the workbook.

hex

A rgb color either a ARGB hex value or RGB hex value With or without leading "#".

theme

A zero based index referencing a value in the theme.

tint

A tint value applied. Range from -1 (dark) to 1 (light).

See Also

wb_get_base_colors() grDevices::colors()