To re-order data in plots (e.g., categorical variables on x-axis, or facet_wrap()), {ggplot} encourages to turn variables into factors and specify the desired order there. However, add_pval() seems to ignore factors and revers to simple (alphabetical) sorting of categorical levels.
To re-order data in plots (e.g., categorical variables on x-axis, or facet_wrap()), {ggplot} encourages to turn variables into factors and specify the desired order there. However, add_pval() seems to ignore factors and revers to simple (alphabetical) sorting of categorical levels.