PediatricOpenTargets / OpenPedCan-api

2 stars 7 forks source link

Change boxplot box fill colors to be color blind friendly #54

Closed logstar closed 2 years ago

logstar commented 2 years ago

Replace boxplot box fill colors from red to blue to be color blind friendly, as suggested by @taylordm .

Current box fill colors:

Screen Shot 2021-11-12 at 2 37 43 PM

Proposed replacement box fill colors:

Screen Shot 2021-11-12 at 2 41 15 PM

cc @chinwallaa @afarrel

logstar commented 2 years ago

@taylordm @chinwallaa - Following are two example plots:

plot1

plot2

jharenza commented 2 years ago

@logstar can we use two different colors here for primary and relapse from here to make them stand out more? Maybe #56B4E9 or #0072B2 for primary and #CC79A7 for relapse?

If we go with two shades of the same color, are those divergent enough? May have to use #56B4E9 and #0072B2?

logstar commented 2 years ago

@logstar can we use two different colors here for primary and relapse from here to make them stand out more? Maybe #56B4E9 or #0072B2 for primary and #CC79A7 for relapse?

If we go with two shades of the same color, are those divergent enough? May have to use #56B4E9 and #0072B2?

@jharenza Thank you for the suggestion. We could use two different colors.

@taylordm @chinwallaa - I was wondering if you have any preference.

logstar commented 2 years ago

@taylordm @chinwallaa - Following are example plots using colors suggested by @jharenza:

plot3

plot4

logstar commented 2 years ago

@taylordm @jharenza - I will use blue and orange for primary and relapse tumors respectively, as suggested by @taylordm in meeting. Following is an example plot:

plot3

logstar commented 2 years ago

According to @taylordm's suggestion in the meeting, I will change the color for primary and relapse tumors from blue to purple #332288. The purple color is from the Safe palette in https://stackoverflow.com/a/57157075/4638182.

Screen Shot 2021-11-17 at 8 14 16 AM
logstar commented 2 years ago

#332288 purple is too dark to see box median clearly, so I will use #A997DF purple instead. The #A997DF purple is from the "Palette 2" in https://medium.com/cafe-pixo/inclusive-color-palettes-for-the-web-bbfe8cf2410e.

#332288 purple

plot

#A997DF purple

plot2

cc @taylordm @chinwallaa