Raincloud plots - paired t-test visualisation
Hi,
Does anyone know how to get the y axis to present data the opposite way around for the raincloud plots?
I have 2 conditions (pre and post) for each participant. I am doing a paired t-test - but when I visualise the raincloud plot, it presents the post and then the pre data (if you look from left to right along the x-axis). I have tried switching the order of this in the main stats section but it doesn't make any difference. I also cannot find a way to do this in the "edit plot" part when I click on the image. The descriptive plots show the data in the way I want (pre and then post), but I can't find a way of doing this for the raincloud plots.
Thanks
Comments
Sorry that first line should read x-axis (not y axis). Thanks
I suspect they are in alphabetical order. An ugly hack would be to call the conditions "Apost" and "Bpre"; if this plot them in the right order you can save the plot as a pdf and then edit out the A and B. (let us know whether this works!) We are setting up a much more complete raincloud functionality, but that will take a while to be done.
Cheers,
E.J.
I have the same problem with Pre and post. I tried doing the Apost bpre solution, and it does not work. It doesn't matter the name or the type of variable, it seems it's using the data to "decide" which condition goes first. I have 12 variables, and some are plotted in the desired order and others not.
Do you have any advice?
Hi,
there are two options on how to do this.
Your first option is to wait for the next official JASP release (0.19).
The release should be in about three or four weeks.
If you want to share your work, or even load it with some other version of JASP, then you should wait for this official release.
There is, however, a second option, if its really urgent for you or if you want to create a sketch/work-in-progress plot, while you wait for verson 0.19.
Go to https://static.jasp-stats.org/Nightlies/
and download the lastest Nighly for your system; for example this one:
I think its best if you install it under a slightly different name, so you do not mess up you other work in JASP 0.18. Even better if you back up everything you have been working on beforehand!
https://forum.cogsci.nl/uploads/428/9JTZ3KQ99WBY.pngAfterwards, you can go to the Descriptives Module and select the new submodule: "Raincloud Plots".
The following is an example with the "Larks and Owls" dataset from the JASP data library (Mixed Models).
This is what it looks like when you load in the dataset:
Clearly, we would want the TimeOfDay reversed.
To change this, you can go to "Edit Data", select the TimeOfDay variable, and then switch the order of the two factor levels to "Morning" at the first row and "Evening" on the second row.
This gives:
You will see, that the Raincloud Plots module comes with a bunch of different features.
We have also planned to release a youtube tutorial, that showcases and explains all the features.
Best,
Vincent from the JASP Team
Thanks for your answer. I downloaded the night version and it looks great!
However, I am doing a pre post analysis with two groups and I basically want the plot raincloud plot from the Paired Samples T-Test. It seems in this version you can create rainclouds on Descriptives, but it's not the same format as the specific raincloud from Paired Samples T-Test.
As you can see the order is correct in the title but switched in the plot.
How can I create Paired Samples T-Test raincloud plot but modifying the order of the x-axis?
**This plot is just from one group. I filtered the data
I am afraid I do not know if this is possible at the moment.
Though, you could try to get something similar in the raincloud plots submodule:
The subject lines come from the "Subject" variable, see "ID" input field.
The clouds face each other due to custom orientation in the "Advanced Section":
Hope that helps!