lets-plot-kotlin icon indicating copy to clipboard operation
lets-plot-kotlin copied to clipboard

Group by multiple columns

Open AndreiKingsley opened this issue 3 years ago • 2 comments

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

AndreiKingsley avatar Sep 29 '22 10:09 AndreiKingsley

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 avatar Sep 30 '22 14:09 alshan

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

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

alshan avatar Jan 23 '23 19:01 alshan