Closed m-jahn closed 1 year ago
Can confirm the bug. Additionally, sorting the data frame by the column which is used for the labels seems to fix the issue applying tolower
or toupper
fixes it, even though my labels were lowercase to begin with...
I need to investigate this, did not have time until now. Thanks for confirming.
I've investigating, it turned out that the error was caused by base R sorting through table
as compared to sorting by dplyr
s arrange
. When do capital letters follow in succession, they treat the order differently. Compare:
RNA degradation
RNA polymerase
Ribosome
Unknown
to
Ribosome
RNA degradation
RNA polymerase
Unknown
Of of them gives priority to the capital writing and the other to the alphabetical order of the second letter.
tolower()
fixed the problem, but it's unclear why it should make a difference