set_boundary_colors: INTERNAL: Create a set of boundary colors based on the color...

View source: R/set_boundary_colors.R

set_boundary_colorsR Documentation

INTERNAL: Create a set of boundary colors based on the color set and the boundaries the user needs.

Description

INTERNAL: Create a set of boundary colors based on the color set and the boundaries the user needs.

Usage

set_boundary_colors(color_set, boundaries, break_type = "SO highlight")

Arguments

color_set

either a single value, e.g., "red green" or a character vector of colors. Acceptable single-value color set names:

"yellow to red"

for highlighting in PK tables

"green to red"

for highlighting in PK tables

"traffic"

for highlighting in PK tables

"red black"

for S/O boundary lines or fill

"red green"

for S/O boundary lines or fill

"muted red green"

for S/O boundary lines or fill

break_type

What type of breaks are these? Options are "GMR" (there will only be 4 and the output will be a named character vector for the intensity of the DDI), "SO highlight" (default) for S/O values in tables, and "SO line" for coloring the lines in S/O graphs. This distinction between "SO highlight" and "SO line" arises because the colors for the lines in the S/O graphs generally should have the 1st color repeated whereas the highlighting for tables should not have any repeats. At present, "yellow to red", "traffic", and "green to red" are only available for break_types of "GMR" or "SO highlight". "red black", "red green", and "muted red green" are only available for a break_type of "SO line".

Value

a character vector of colors, one for each numeric boundary

Examples

# None. Internal use only.


shirewoman2/Consultancy documentation built on Feb. 18, 2025, 10 p.m.