Page 1 of 1

Order for anova graphics

Posted: Fri Oct 23, 2020 1:46 pm
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

Re: Order for anova graphics

Posted: Fri Oct 23, 2020 7:17 pm
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 1097 times
Cheers,
Maurizio