[Feature Request]: Manually set amount of categories in distribution plots
Description
Currently, the amount of categories in a distribution plot (i.e., the x axis) is determined automatically by JASP. I am currently working with a dataset, where participants responded to a series of questions with a rating of 1-4 (i.e., four response categories). In some questions, no participants selected the response "1". JASP now understandably assumes that this response option does not exist and therefore displays only the categories 2-4 in the distribution plot. This complicates the comparison of the plots (see example below), because the information that zero participants selected response option 1 gets lost.
Purpose
No response
Use-case
No response
Is your feature request related to a problem?
No response
Is your feature request related to a JASP module?
Descriptives
Describe the solution you would like
It should be possible to manually set and label the amount of categories on the x axis.
Describe alternatives that you have considered
No response
Additional context
Plot with four categories (correct)
Plot with three categories (incorrect, response option 1 is missing, since no participants selected this option. Nevertheless, this is relevant information and should be possible to display in the plot.)
@maximusmontis thx for the report. This is also true for flexplot. At the moment our graph-editor only allows x-axis editing of metric/scale variables. As a temporary workaround you could switch the variabel to scale, then click on "edit image" and alter the x-axis settings. But this should certainly not be neccesary. Let's hope that this can be implemented for 0.20 or later.
I would recommend you convert A203_06 into an ordered factor. That will preserve both the order and the slot for the zeroes even if you don't have any answers for that. I don't know that I can modify flexplot to make that always the case because it would have no way of knowing that zero is supposed to be the minimum.
@maximusmontis Just to let you know - there is a fix for this now included in the latest nightlies. If you want to test: https://static.jasp-stats.org/Nightlies/
But those might be unstable.
See this pull request for how this is supposed to work now via manually adding levels of data that is not really there: https://github.com/jasp-stats/jasp-desktop/pull/5789
Please reopen if you disagree that this solves this problem.