SymbolixAU / colourvalues

R library for assigning colours to values
https://symbolixau.github.io/colourvalues/
46 stars 6 forks source link

NA characters ignored in summary colours #42

Closed SymbolixAU closed 5 years ago

SymbolixAU commented 5 years ago
vals <- c("a","b",NA_character_, "d", "e","f","g")
colourvalues::color_values( vals, summary = T)

$colours
[1] "#440154FF" "#414487FF" "#808080FF" "#2A788EFF" "#22A884FF" "#7AD151FF" "#FDE725FF"

$summary_values
[1] "a" "b" "d" "e" "f" "g" NA 

$summary_colours
[1] "#440154FF" "#443A83FF" "#31688EFF" "#21908CFF" "#35B779FF" "#8FD744FF" "#FDE725FF"