View source: R/trubetskoy_colors.R
trubetskoy_colors | R Documentation |
use this color pallete
trubetskoy_colors(n, alpha = 1, nogray = FALSE)
n |
the number of colors you want (1:22 if you want black and white and gray; 1:19 if not) |
alpha |
set the alpha of all the colors together at once I don't let you do it indepdently |
nogray |
defaults to |
this uses the color pallete described here: https://sashat.me/2017/01/11/list-of-20-simple-distinct-colors/ and inspired by Kenneth Kelly's 22 colors of maximum contrast. Kelly's are better matched for "brightness" but these are more distinct to my eyes.
a vector of hexcoded rgb colors
## Not run: plot(1:22, rep(1, 22), pch = 16, cex = 5, col = trubetskoy_colors(22)) ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.