Skip to content

[enhancement] equal position_dodge for incomplete factor combinatios #2033

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

Closed
DSLituiev opened this issue Feb 6, 2017 · 1 comment
Closed

Comments

@DSLituiev
Copy link

It has been often asked on stackoverflow and elsewhere how to plot bars /columns/ boxplots of even width when grouped by x and fill with some factor combinations missing, e.g. in following figure one wishes to have all bars of the same width:

uneven width
)

http://stackoverflow.com/questions/11020437/consistent-width-for-geom-bar-in-the-event-of-missing-data
http://stackoverflow.com/questions/15367762/include-space-for-missing-factor-level-used-in-fill-aesthetics-in-geom-boxplot?noredirect=1&lq=1
http://stackoverflow.com/questions/41968652/changing-geom-bar-widths-on-ggplot?noredirect=1&lq=1
http://stackoverflow.com/questions/38101512/the-same-width-of-the-bars-in-geom-barposition-dodge
http://howtodevelop.eu/question/r-ggplot2-changing-geom-bar-widths-on-ggplot,135411

etc, etc...

Some of recipes suggested work pretty well, but I wonder if this should be a default behaviour or at least some of these recipes can be incorporated as, let us say position_equal_dodge option?

@hadley
Copy link
Member

hadley commented Feb 6, 2017

I implemented this 10 days ago 😄

#1935

@hadley hadley closed this as completed Feb 6, 2017
@lock lock bot locked as resolved and limited conversation to collaborators Jun 19, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants