I am using boxplot to show the distribution among 5 different data sets.
I know it is possible to arrange them based on their median values.
What I am looking for is to arrange them based on the difference between the first quartile and the third.
Obviously I do not want to arrange them manually by reordering the levels.
I have fixed this using tidyverse group_by and summarise and calculating the difference between the desired quartiles and using that to arrange the boxes.
If anyone need the code or has a better solution, please let me know.
Thank you.