jokergoo / simplifyEnrichment

Simplify functional enrichment results
https://jokergoo.github.io/simplifyEnrichment
Other
108 stars 16 forks source link

Make the default colors colour-blind tolerable #54

Closed krassowski closed 3 years ago

krassowski commented 3 years ago

The default random colors are difficult to read with the default background. It's great that those are all customizable, but just in case if someone is going to leave it as is, and for the ease of exploratory analysis I would love to be able to read the text clearly.

In the following example:

image

I am unable to read the words:

https://github.com/jokergoo/simplifyEnrichment/blob/3dbbaf52e68ba6e81bb3c2126dd15770f8d718d8/R/word_count.R#L156-L159

jokergoo commented 3 years ago

This is mainly because all colors are random. I think it can be solved by changing the colors if they are too light.

jokergoo commented 3 years ago

Now I check whether the random colors are bright or yellow. If they are, new random colors will be regenerated.