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

[FeatureRequest] geom_density_ridges for bounded data #85

Open
wbvguo opened this issue Jun 3, 2023 · 1 comment
Open

[FeatureRequest] geom_density_ridges for bounded data #85

wbvguo opened this issue Jun 3, 2023 · 1 comment

Comments

@wbvguo
Copy link

wbvguo commented Jun 3, 2023

Hi,

Thanks for maintaining this tool. Would it be possible to have an option for setting bounds when plotting the density ridge plot?

Just as the geom_density did in this github post:

tidyverse/ggplot2#3387

Thanks!

@rimonim
Copy link

rimonim commented Dec 13, 2023

I agree that this would be a nice feature. Until it gets implemented, I'll note that the effect can be pretty easily achieved by setting stat to "density" (remember to add height = ..density..)

For example:
ggplot(diamonds, aes(x = price, y = cut, fill = cut, height = ..density..)) + geom_density_ridges(stat = "density", bounds = c(0, 20000))

@wbvguo wbvguo changed the title Feature request: geom_density_ridges for bounded data FeatureRequest: geom_density_ridges for bounded data Nov 12, 2024
@wbvguo wbvguo changed the title FeatureRequest: geom_density_ridges for bounded data [FeatureRequest] geom_density_ridges for bounded data Nov 16, 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