dittoColors | R Documentation |
Creates a string vector of 40 unique colors, in hexadecimal form, repeated 100 times.
Or, if get.names
is set to TRUE
, outputs the names of the colors which can be helpful as reference when adjusting how colors get used.
These colors are a modification of the protanope and deuteranope friendly colors from Wong, B. Nature Methods, 2011.
Truly, only the first 1-7 are maximally (red-green) color-blindness friendly, but the lightened and darkened versions (plus grey) in slots 8-40 still work releatively well at extending their utility further. Note that past 40, the colors simply repeat in order to most easily allow dittoSeq visualizations to handle situations requiring even more colors.
The colors are:
1-7 = Suggested color panel from Wong, B. Nature Methods, 2011, minus black
1- orange = "#E69F00"
2- skyBlue = "#56B4E9"
3- bluishGreen = "#009E73"
4- yellow = "#F0E442"
5- blue = "#0072B2"
6- vermillion = "#D55E00"
7- reddishPurple = "#CC79A7"
8 = gray40
9-16 = 25% darker versions of colors 1-8
17-24 = 25% lighter versions of colors 1-8
25-32 = 40% lighter versions of colors 1-8
33-40 = 40% darker versions of colors 1-8
dittoColors(reps = 100, get.names = FALSE)
reps |
Integer which sets how many times the original set of colors should be repeated |
get.names |
Logical, whether only the names of the default dittoSeq color panel should be returned instead |
A string vector with length = 24.
Daniel Bunis
dittoColors()
#To retrieve names:
dittoColors(get.names = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.