wilkelab / ggridges

Ridgeline plots in ggplot2
https://wilkelab.org/ggridges
GNU General Public License v2.0
411 stars 31 forks source link

Weighted densities support #90

Closed joranE closed 8 months ago

joranE commented 8 months ago

This is an attempt to resurrect PR59 from @mkoohafkan.

I tried to address the notes on the original PR, narrowing the focus to just adding the weight aesthetic and adding two tests, one for the unweighted density case and one for the weighted case.

clauswilke commented 8 months ago

This generally looks good to me. Could you also make an entry in NEWS.md? See ggridges version 0.5.5 for examples by external contributors.

joranE commented 8 months ago

Thanks for the quick turnaround! Let me know if there's anything else I need to clean up!

clauswilke commented 8 months ago

Thanks for your contribution! I just recently made a release, so not sure how quickly this will percolate to CRAN. But at least it's in the github version now.