wilkelab / ggridges

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

Add option to calculate bandwidth separately #46

Open akarlinsky opened 4 years ago

akarlinsky commented 4 years ago

I suggest to add an option to geom_density_ridges such as "bygroup" which flags if the bandwidth estimation should be by group or on the whole range of x values.

See #45 as well.

heinonmatti commented 3 years ago

After an hour of trying to grasp the issue, I'm coming to the conclusion that currently you can't have both jittered points and facets with density by group. Is this correct?

FarMar commented 1 year ago

Unfortunately it seems that way. Though I suppose in some cases the jittered points are superfluous (e.g., if height = ..count.. is used so that the area under the ridge is proportional to the n in the population), it would still be very useful to be able to make that choice