Skip to content

[Bug]: Rain cloud plot (Paired Samples T-Test) shows wrong order of variables #3460

@bellhaeuser

Description

@bellhaeuser

JASP Version

0.19.3

Commit ID

No response

JASP Module

T-Tests

What analysis are you seeing the problem on?

Paired Samples T-Test

What OS are you seeing the problem on?

macOS Silicon

Bug Description

The raincloud plot (Spaghetti plot) in the Paired Samples T-Test always shows the same order of the two variables that you insert, irrespective of the order in which you insert the variables. E.g., when you insert the T1 variable first (left cell) and then the T2 variable second (right cell), the plot sometimes shows T1 on the right and T2 on the left.
When you switch the position of the two variables in the interface, the order in the raincloud plot stays the same (although in all other plots [bar plot, descriptive plot] the order changes).

Image

Image

Expected Behaviour

When the T1 variable is inserted first (into the left cell) and the T2 variable is inserted second (into the right cell), the raincloud plot should show T1 on the left and T2 on the right. When you insert T2 first (into the left cell) and T1 second (into the right cell), the raincloud plot should show T2 on the left and T1 on the right.

Steps to Reproduce

T1T2simulation.csv

  1. open the attached file (T1T2simulation.csv)
  2. Chose Paired Samples T-Test
  3. Insert T1 first (left cell), then T2 (right cell).
  4. Activate Descriptive Plot, Bar Plot, and Raincloud plot.
  5. See how all three plots have the same direction (T1 < T2).
  6. Change the order of the variables (insert T2 first into the left cell, than T1 into the right cell)
  7. See how the raincloud plot does not change (T1 is still on the left), whereas both other plots change.

Log (if any)

No response

More Debug Information

No response

Final Checklist

  • I have included a screenshot showcasing the issue, if possible.
  • I have included a JASP file (zipped) or data file that causes the crash/bug, if applicable.
  • I have accurately described the bug, and steps to reproduce it.

Metadata

Metadata

Labels

Bug: MediumBugs that don't influence the basic function of the app, but it's better to fix them at some point.Module: jaspTTestsOS: macOS Silicon

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions