-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Pass on binwidth and height to geom #4671
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
Conversation
I've decided to refactor |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this is a good idea. Give me a few days to look this over carefully. On quick glance looks good though.
Not sure what is happening here, but these examples do not run correctly. https://ggplot2.tidyverse.org/reference/geom_hex.html
Warning message: |
@jeffcraggy |
I see. Thought it came with the tidyverse ggplot2 object. Anyways I used the contour heat map . But thank you, he bin is a great feature
Jeff
Get Outlook for iOS<https://aka.ms/o0ukef>
…________________________________
From: Hiroaki Yutani ***@***.***>
Sent: Saturday, February 19, 2022 9:42:34 PM
To: tidyverse/ggplot2 ***@***.***>
Cc: Jeff Craggy ***@***.***>; Mention ***@***.***>
Subject: Re: [tidyverse/ggplot2] Pass on binwidth and height to geom (PR #4671)
@jeffcraggy<https://github.com/jeffcraggy>
Hi, thanks for the report. You need to install hexbin package. I filed a new issue: #4736<#4736>
—
Reply to this email directly, view it on GitHub<#4671 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AXFMCCJQCQGK2J4C3HHP2STU4BIJVANCNFSM5IEKA6ZQ>.
Triage notifications on the go with GitHub Mobile for iOS<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675> or Android<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
You are receiving this because you were mentioned.Message ID: ***@***.***>
|
* master: (320 commits) Orientation-aware key glyphs (tidyverse#4757) Fix warning in geom_violin with draw_quantiles (tidyverse#4654) Fix misalignment in geom_dotplot when stackratio != 1 and stackdir != "up" (tidyverse#4734) Replace coord_equal in scale-identity.r (tidyverse#4759) Unified message format in `geom_smooth()` (tidyverse#4634) Add parentheses to mentions of binned_scale in scale-alpha and scale-viridis documentation (tidyverse#4735) Update geom-boxplot.r (tidyverse#4744) Remove unneeded backslash from diamonds docs (tidyverse#4711) Re-document Warn on unsupported geoms in annotate() (tidyverse#4721) Re-document Add Trump to presidential terms dataset (tidyverse#4702) Corrects bins / binwidth override documentation (tidyverse#4720) Update infrastructure to new best practices (tidyverse#4748) remove stringsAsFactor for the mapped_discrete as.data.frame method (tidyverse#4750) Workflow updates (tidyverse#4747) Ensure output is numeric even if ifelse clause is NA (tidyverse#4692) Add non_missing_aes to geom_tile (tidyverse#4683) Pass on binwidth and height to geom (tidyverse#4671) Check for range == NULL - happens if no data has been added to plot (tidyverse#4682) ...
Fix #4580
This PR makes
stat_bin_hex()
writewidth
andheight
to the data whichgeom_hex()
can pick up instead of deriving the resolution from data. This fixes issues with very sparse data where the bin resolution is not obvious from the bin centers