SymbolixAU / colourvalues

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

short character vectors with matrix palette #33

Closed SymbolixAU closed 6 years ago

SymbolixAU commented 6 years ago
m <- grDevices::colorRamp(c("red","green","blue","yellow"))(0:1000/1000)
colour_values(1, palette = m )  ## fine
colour_values("a", palette = m) ## error