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

geom_miss_bin2d #236

Open
MilesMcBain opened this issue Jul 16, 2019 · 1 comment
Open

geom_miss_bin2d #236

MilesMcBain opened this issue Jul 16, 2019 · 1 comment
Labels
Milestone

Comments

@MilesMcBain
Copy link
Contributor

For large data sets geom_bin2d provides a useful alternative to geom_point. It would be nice to have something similar for large data with missings. Here's a crude mockup I made in paint:

missing bin2d

You'd probably move the missing bar down a bit and obviously the colour scale is a joke, but hopefully you get the idea.

@njtierney
Copy link
Owner

Good idea!

This should be possible with something like this:

library(naniar)
library(ggplot2)
airquality %>%
  bind_shadow() %>%
  impute_below_all() %>%
  add_label_shadow() %>%
ggplot(aes(x = Ozone,
           y = Solar.R,
           colour = any_missing)) + 
  geom_bin2d()

Created on 2019-07-17 by the reprex package (v0.3.0)

While I'm at it, might be worthwhile look at geom_hexbin() as well

@njtierney njtierney modified the milestones: V0.7.0, V0.8.0 Oct 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants