Skip to content

add geom_hex support #307

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
mikejiang opened this issue Nov 18, 2015 · 6 comments
Closed

add geom_hex support #307

mikejiang opened this issue Nov 18, 2015 · 6 comments

Comments

@mikejiang
Copy link

No description provided.

@cpsievert
Copy link
Collaborator

plotlyjs doesn't natively support hexagonal binning, but maybe we could do some sort of hack with markers with symbol="hexagon"?

@cpsievert
Copy link
Collaborator

Closing in favor of #348

@maxheld83
Copy link

Browsing through the code, I just realised that this is in fact already implemented.
Sorry for being so dense.

m <- ggplot2::ggplot(faithful, aes(x = eruptions, y = waiting)) + geom_hex()
plotly::ggplotly(m)

Fantastic.

@cpsievert
Copy link
Collaborator

It is supported via ggplotly(), but not natively in plotly.js, so you're issue/request is worthwhile!

@maxheld83
Copy link

oh ok – thanks. I hadn't even thought that was possible that ggplotly() could do something that plotly couldn't.

@cpsievert
Copy link
Collaborator

cpsievert commented Apr 11, 2017

plotly.js itself doesn't do hexagonal binning, but you can always do it with something else and pass the x/y data representing the hexagons to a scatter trace

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants