Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change order of comparisons in the plot #859

Open
MarkKramer opened this issue May 13, 2023 · 2 comments
Open

Change order of comparisons in the plot #859

MarkKramer opened this issue May 13, 2023 · 2 comments

Comments

@MarkKramer
Copy link

At the moment the ggbetweenstats function displays the groups in alphabetical order. Is it at all possible to manually dictate the order? In the figure below the data are shown in the following order: "Club, National, Provincial", whereas ideally it should be "Club, Provincial, National".

ANOVA_Knee_Ext_both_v2

@yuliaUU
Copy link

yuliaUU commented Jun 14, 2023

I think u just need to save your column as a factor with levels specified in certain order. Than you will get the order that you want

@ConalMonaghan
Copy link

I think u just need to save your column as a factor with levels specified in certain order. Than you will get the order that you want
This is how I solved this issue on my end also. Works well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants