-
Notifications
You must be signed in to change notification settings - Fork 2.1k
geom_hexbin(): hexes appear stretched? #6461
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
Comments
|
This has always been the case. The binning happens before ggplot2 knows anything about the aspect ratio of the plot and is not recalculated on resizing. So you'll need to use a coord_fixed() to ensure the hexagon is regular |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Using this code, from the examples:
It seems like the plotted hexagons are now "squished" improperly, according to the aspect ratio of the current device. For example:
Has it always been this way and I'm just misremembering? Or has something changed in how hexagonal bins are drawn?
Compare this with plots generated by e.g.
The text was updated successfully, but these errors were encountered: