Order for anova graphics

General help and assistance with jamovi. Bug reports can be made at our issues page: https://github.com/jamovi/jamovi/issues . (If you're unsure feel free to discuss it here)
Post Reply
peishu001
Posts: 1
Joined: Fri Oct 23, 2020 1:40 pm

Order for anova graphics

Post by peishu001 »

Hi

I am using jamovi codes in R. I was trying to figure out how to change the order of conditions that appeared on the x-axis when I was generating graphics for estimated marginal means.

For example, I have two conditions, A and B. I want B to appear on the left side of the x-axis and A on the right.
How should I adjust my R code in order to do this?

Thank you!
Best,
Peishu
User avatar
MAgojam
Posts: 421
Joined: Thu Jun 08, 2017 2:33 pm
Location: Parma (Italy)

Re: Order for anova graphics

Post by MAgojam »

Hello Peishu.
If you use jamovi, do it by setup and change the position of the factor levels for what you are looking for.
If you use the jmv package in R you will need to change the position of the factor levels and then sort.
I attach a screenshot in jamovi, where I use the Rj module with the script that uses the R system (4.0.3) which reports the suggestion.
Screenshot.PNG
Screenshot.PNG (147.61 KiB) Viewed 1070 times
Cheers,
Maurizio
Post Reply