Description Usage Arguments Details Value Examples
CBB12 provides an interface to the cbb12 tibble that includes compact notation for different orderings of the colors, based on what type of data you are plotting.
1 |
i |
Indicies for colors to pull from cbb12. If NULL, a vector of all unique colors is returned. |
order |
A string in |
trit |
A logical value. TRUE indicates tritanopia-friendly colors such that the colors returned should include only colors that are distinguishable for individuals with tritanopia (see details). |
Ordering: d2l
results in an ordering of the colors from dark to light (default), l2d
results in an ordering of the colors from light to dark, and c
results in an ordering of the colors that maximizes contrast.
Tritanopia: An effort has been made to order colors in such a way that they do not appear next to colors that might otherwise be indistinguishable for individuals with tritanopia. In general you should leave these out (the default), unless you need more than 9 colors, in which case you should be careful to avoid having two similar colors appear next to eachother.
A vector of colors
1 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.