ices-eg / wg_WGEEL

Joint EIFAAC/ICES/GFCM Working Group on Eels
http://ices.dk/community/groups/Pages/WGEEL.aspx
5 stars 12 forks source link

add hexadecimal color code in the db, table ref.tr_country_cou #170

Closed elfunesto closed 7 months ago

elfunesto commented 3 years ago

This is currently defined in R script through values=c(RColorBrewer::brewer.pal(12,"Set3"), RColorBrewer::brewer.pal(12, "Paired"), RColorBrewer::brewer.pal(8,"Accent"), RColorBrewer::brewer.pal(8, "Dark2")) color_countries = setNames(values,country_ref$cou_code)

We can also have a look at hues or colorspace

mariazti commented 2 years ago

Reading tutorials from Iwanthue, I have selected the colour scale they propose for large palettes, and this is the result: iwanthue(40, 0, 360, 0, 85, 30, 95, plot=TRUE, random = TRUE) image

I have the script ready to add the colour column to the country and EMU tables, I just need to know if you want to keep the colour (@ClarisseBoulenger proposed not to change it), or you prefer a constant scale (@cedricbriandgithub proposed to homogenise the colours).

ClarisseBoulenger commented 2 years ago

Are the colors of the new palette visible to the coloblindness? If so, it's not a problem to change them. If not, it's why we had a hard time choosing colors from different palettes to meet the demands of some of the working group. @cedricbriandgithub @mariazti