const-ae / const-ae/ggupset

Feature request: scale_x_upset order_by weighted frequency

Open
#21 1 comment 1 reaction 0 assignees View on GitHub
Dominant language
R
Stars
399
Forks
32
PR merge metrics
No merged PRs in 30d

Description

I've been using ggupset for datasets where each datapoint has a weight, but when you set the `weight` aesthetic in `geom_bar`, the order generated by `scale_x_upset(order_by = "freq")` is still the order of the unweighted data. It would be nice to have the option of sorting by weighted total.

Thanks for the great package!

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by tracing how scale_x_upset(order_by = "freq") determines its ordering and how geom_bar consumes the weight aesthetic. Compare the current unweighted frequency with the weighted total, then verify that the new ordering option works on a weighted dataset and preserves existing unweighted behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
r
Domain
data-visualization
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.