- type
type of palette. Run c4a_types
to see the implemented types and their description. For c4a_gui
it only determines which type is shown initially.
- n, m
n
is the number of displayed colors. For bivariate palettes "biv"
, n
and m
are the number of columns and rows respectively. If omitted: for "cat"
the full palette is displayed, for "seq"
and "div"
, 9 colors, and for "bivs"
/"bivc"
/"bivd"
/"bivg"
4 columns and rows. For c4a_gui
it only determines which number of colors initially.
- series
Series of palettes to show. See c4a_series
for options. By default, "all"
, which means all series. For c4a_gui
it only determines which series are shown initially.
- cvd.sim
color vision deficiency simulation: one of "none"
, "deutan"
, "protan"
, "tritan"
- sort
column name to sort the data. The available column names depend on the arguments type
and show.scores
. They are listed in the warning message. Use a "-"
prefix to reverse the order.
- text.format
The format of the text of the colors. One of "hex"
, "RGB"
or "HCL"
.
- text.col
The text color of the colors. By default "same"
, which means that they are the same as the colors themselves (so invisible, but available for selection). "auto"
means automatic: black for light colors and white for dark colors.
- range
vector of two numbers that determine the range that is used for sequential and diverging palettes. Both numbers should be between 0 and 1. The first number determines where the palette begins, and the second number where it ends. For sequential palettes, 0 means the leftmost (normally lightest) color, and 1 the rightmost (often darkest) color. For diverging palettes, 0 means the middle color, and 1 both extremes. If only one number is provided, this number is interpreted as the endpoint (with 0 taken as the start). By default, it is set automatically, based on n
.
- include.na
should color for missing values be shown? FALSE
by default
- show.scores
should scores of the quality indicators be printed? See details for a description of those indicators.
- columns
number of columns. By default equal to n
or, if not specified, 12. Cannot be higher than the palette lengths.
- verbose
should messages and warnings be printed?