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

stat_bin should handle a number of bins in addition to binwidth and breaks #102

Closed
jiho opened this Issue May 21, 2010 · 5 comments

Comments

Projects
None yet
3 participants
@jiho
Contributor

jiho commented May 21, 2010

Use case: when plotting the histograms of several variables at once, the user wants some control over the fineness of the breaks but cannot provide breaks of binwidth because the units of the variables are very different.

library(ggplot2)
d = data.frame(id=1:100, a=runif(100), b=runif(100)*20, c=runif(100)-10)
d = melt(d, id="id")
ggplot(d) + geom_bar(aes(x=value)) + facet_wrap(~variable, scales="free")
@hadley

This comment has been minimized.

Member

hadley commented Dec 2, 2011

Will be done as part of densityVis package.

@hadley

This comment has been minimized.

Member

hadley commented Feb 24, 2014

This sounds like a great feature, but unfortunately we don't currently have the development bandwidth to support it. If you'd like to submit a pull request that implements this feature, please follow the instructions in the development vignette.

@hadley hadley closed this Feb 24, 2014

@krlmlr

This comment has been minimized.

Member

krlmlr commented Apr 24, 2014

Would a pull request that offers a bincount parameter make it into 1.0? Thanks for considering.

@hadley

This comment has been minimized.

Member

hadley commented Apr 24, 2014

No, it's too late now. I need to fix the last R CMD problem and then start publicising the release candidate.

@krlmlr

This comment has been minimized.

Member

krlmlr commented Apr 24, 2014

OK. Anyway, it should probably be bins, as in stat_contour.

@lock lock bot locked as resolved and limited conversation to collaborators Jun 20, 2018

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.