colorprep options
colorprep_options.RmdThis page aims to explain the options available in the colorprep category. It will discuss the purpose of each argument, the possible values it can take, and the expected outcome of each argument.
color_by
Specifies the variable used to color elements in a visualization. It determines how elements are colored based on different categories or groups. When set to NULL, a default color scale is often applied, and expects a character value (hdtype Txt) representing the variable name.
color_palette_categorical
Specifies the color palette used for categorical data where each
category is represented by a different color. This argument takes a list
of colors (hdtype Lst[Clr]) in any valid format. By default, it has the
value
list(#385573, #ffa92a, #f06142, #99e8b3, #32a8ce, #996295, #e59fd7).
color_palette_divergening
Specifies the color palette used to represent diverging data, where colors represent two opposite extremes or value ranges, such as hot/cold, high/low, etc. The argument expects a list of colors (hdtype Lst[Clr]) in any valid format. By default, it is set to list(#ff844e, #ffa154, #ffc48b, #eef0f1, #a0c7da, #57a0c5, #255b89).
color_palette_sequential
Specifies the color palette used for sequential data, where every
color represent a sequence or gradient. Typically used to show intensity
or magnitude. It received a list of colors (hdtype Lst[Clr]) in any
valid format, its default value is
list(#b8f3ca, #add79c, #8dbd93, #70a38e, #568989, #3f6f83, #28557d).
color_palette_type
Specifies the type of color palette to be used in the visualization. It defaults to NULL and its possible values include “categorical,” “sequential,” and “diverging” (hdtype Cat).