Faiths Phylogenetic Diversity Boxplot

Dear all,

I have generated my Faiths PD boxplot. I realised that the x-axis is not sorted properly. Is there any way to get the axes sorted in correct order?

Thank you.

Hi @Arun04

It actually is in order based on what you’ve provided. Because its a string, the parsing library sees the first number (1[6], 2, 3[2]) and goes ahh! 1 < 2 < 3 (which is what it’s reading!) Your options are to either 0-pad, so make it 02, 04, 08… or to add a number prefix for it to see (1-2, 2-4, 3-8, etc). You can 0-pad in excel if you format as a string.

Best,
Justine

4 Likes

Hi Justin,

Thanks a lot for the advice and suggestion. Will get back after trying out.

TQ

ArunRR

2 Likes