Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature Request]: Barplots of single categorical var with many ratio vars with different colors but same color per category. #1734

Open
estatistics opened this issue Jun 2, 2022 · 14 comments

Comments

@estatistics
Copy link

Description

Barplots of single categorical var with many ratio vars with different colors but same color per category.

Purpose

Barplots of single categorical var with many ratio vars with different colors but same color per category.

Use-case

Barplots of single categorical var with many ratio vars with different colors but same color per category.

Is your feature request related to a problem?

No response

Describe the solution you would like

Barplots of single categorical var with many ratio vars with different colors but same color per category.

Describe alternatives that you have considered

No response

Additional context

Barplots of single categorical var with many ratio vars with different colors but same color per category.

@estatistics
Copy link
Author

estatistics commented Jun 2, 2022

^ all "single categorical" * "dependents" (means) presented in the same plot.

@estatistics
Copy link
Author

You have 10 dependent vars from 1 to 5 likert scale and you would like to see in a single barplot, gender differences in means.
How do you that? I tried flexplot.
I could not find such feature anywhere in jasp.

@juliuspfadt
Copy link
Contributor

@estatistics thanks for the request. Is there any way you could give a visual for what you would like to see? even if it is only a hand drawn figure... :)

@juliuspfadt
Copy link
Contributor

is this something you mean:
image
if yes then @foger3 is working on this.

@estatistics
Copy link
Author

yes something like this will do!
See the below example.
Επιλογή_534

@estatistics
Copy link
Author

estatistics commented Jun 22, 2022

Note that the stack graphs are not desirable in every case. eg. It is more straightforward to see which bar is higher than other than to spot lower /higher numbers. There are cases that categories itself do not make 100% (multichoice answers of yes / no form) e.g. why you went vegan A) to abstain from animal abuse (70%/30%) , B) for health issues (82%/18%) C) for the environment (88%/12%)

@juliuspfadt
Copy link
Contributor

@foger3 is this something you worked on?

@foger3
Copy link

foger3 commented Jun 27, 2022

@JuliusPf currently not, first the horizontally flipped stacked version is coming. For now, distribution plots (under basic plots in "Descriptives") can be used to accomplish the above request, at least partially (one variable per plot). Axes can be standardised with the plot editting feature.

@knamesnik
Copy link

I think we need a "nested bargraph" option. This would solve this problem...

@Reardon7
Copy link

I've been told my feature request, below, is the same as this request, so I am moving my description of my needs /suggestion here:

Description
Show continuous variable in bins with percentile in each bin

Purpose
Alternative way to show distribution of continuous results

Use-case
Anytime distributions can be shown in bins

Is your feature request related to a JASP module?
Distributions

Describe the solution you would like
I'd like to be able to display one or more continuous variables in a graph wherein each variable is shown along the x-axis, grouped into a user selected number of bins showing the percentage in each bin and, most ideally, the bin colors changing along a gradient. See example

Describe alternatives that you have considered
This can be done in Excel, with considerable effort, but it would be great to see it in Jasp

Below is the published paper that shows in Figure 1 how survey respondents responses to several continuous scales were divided into bins, displayed across an x axis with the percentage of the respondents in each bin shown in each bin.

https://www.cureus.com/articles/124269-effects-of-pressure-to-abort-on-womens-emotional-responses-and-mental-health#!/
308669359-fabc7942-e2b5-4872-bb85-4fba24024e35

@tomtomme
Copy link
Member

tomtomme commented Mar 1, 2024

@foger3
Are you still working on these?

@Reardon7
Currently you can do a similar plot like yours via:
image
I know, its not the same. Percentages in the bars are not shown and you cannot change the 0 point. But still, I hope this helps in the meantime until we get proper stacked and nested bar charts.

For bigger context, we are still missing:
image

@tomtomme
Copy link
Member

amazing news from 0.19 beta :D
image
Nested Histograms are there, thanks to @JohnnyDoorn !

Stacked bar charts for 2x categorial next and then the stuff for >2 variables :D?
But lets not forget there are >300 other feature requests...

@tomtomme tomtomme assigned JohnnyDoorn and unassigned vandenman and foger3 Mar 15, 2024
@tomtomme
Copy link
Member

tomtomme commented Jan 6, 2025

@estatistics
@Reardon7
@knamesnik
stacked bar plots etc. are being worked on via an implementation of tidyplot. For progress see: #3083

@JohnnyDoorn
Copy link

We do also now have frequency plots for categorical variables, that can be split by another categorical variable:
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment