AWKruijt / JT-RCI

obtain and plot Jacobson-Truax and reliable change indices
10 stars 1 forks source link

Colorblind friendly palette #5

Open SiljeHS opened 7 months ago

SiljeHS commented 7 months ago

Dear JT-RCI team,

Thank you for an excellent package for computing RCI and JT-RCI, a super-helpful README, and easy-to-read code for a newbie like myself.

I'm aiming for colorblind friendly plots to increase accessibility. I've used your source code to change the plot function to produce colorblind friendly output based on the viridis palette, and used the updated plot function on my JTRCI object.

example color codes:
colscb <- c("recovered" = "#FDE725FF","non reliably recovered" = "#73D055FF","improved" = "#20A387FF","unchanged" = "#2D708EFF","deteriorated" = "#453781FF")

I wanted to share this solution as I would have struggeled to change the colors just a couple of months ago, and I thought it might be relevant for others.

Best regards, Silje