View source: R/set_boundary_colors.R
set_boundary_colors | R Documentation |
INTERNAL: Create a set of boundary colors based on the color set and the boundaries the user needs.
set_boundary_colors(color_set, boundaries, break_type = "SO highlight")
color_set |
either a single value, e.g., "red green" or a character vector of colors. Acceptable single-value color set names:
|
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". |
a character vector of colors, one for each numeric boundary
# None. Internal use only.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.