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

gghistogram not parsing the weight parameter #215

Closed
y1zhou opened this issue Oct 5, 2019 · 1 comment
Closed

gghistogram not parsing the weight parameter #215

y1zhou opened this issue Oct 5, 2019 · 1 comment

Comments

@y1zhou
Copy link

y1zhou commented Oct 5, 2019

In ggplot2 you can plot a weighted histogram with geom_histogram(aes(x = x, weight = y)), but gghistogram() doesn't have a parameter for weights. Is this by design, or can we add that into the parameters?

Thanks!

kassambara added a commit that referenced this issue Jun 4, 2020
@kassambara
Copy link
Owner

fixe now, thanks!

library(ggpubr)
# Standard histogram
gghistogram(iris, x = "Sepal.Length", bins = 30)

# Weighted histogram
gghistogram(iris, x = "Sepal.Length", bins = 30, weight = "Petal.Length")

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