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

Group by multiple columns #136

Open
AndreiKingsley opened this issue Sep 29, 2022 · 2 comments
Open

Group by multiple columns #136

AndreiKingsley opened this issue Sep 29, 2022 · 2 comments
Milestone

Comments

@AndreiKingsley
Copy link
Contributor

Is it possible to make a group by several columns (without mappings to other aesthetics)? For example like this:
group = listOf("col1", "col2")

@alshan
Copy link
Collaborator

alshan commented Sep 30, 2022

No, collection of column names is not supported as a value of aesthetic. It must be either a name or a collection of values (data).

@alshan
Copy link
Collaborator

alshan commented Jan 23, 2023

Just stumbled upon the "interaction" fun in R:
group = interaction(dir, grp)

https://stackoverflow.com/questions/50604055/ggplot2-geom-bar-position-failure

@alshan alshan added this to the 2023Q3 milestone Jun 28, 2023
@alshan alshan modified the milestones: 2023Q3, 2023Q4 Sep 29, 2023
@alshan alshan modified the milestones: 2023Q4, 2024Q1 Jan 2, 2024
@alshan alshan modified the milestones: 2024Q1, 2024Q2 Mar 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants