Skip to content

Multiple mapping variables leads to overplotting #577

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
cpsievert opened this issue May 10, 2016 · 2 comments
Closed

Multiple mapping variables leads to overplotting #577

cpsievert opened this issue May 10, 2016 · 2 comments
Labels

Comments

@cpsievert
Copy link
Collaborator

In this example 64 points are plotted, instead of 32.

p <- plot_ly(mtcars, x = disp, y = wt, symbol = factor(vs), color = factor(am), mode = "markers") 
l <- plotly_build(p)
sum(sapply(l$data, function(x) length(x$x)))
#> [1] 64

It'd be awesome if we could extract out the existing infrastructure for ggplotly() which works this way, and take advantage of it in plotly_build().

@cpsievert
Copy link
Collaborator Author

Actually it might be slightly easier/lighter-weight to take advantage of the new groupby transform when it gets merged.

@cpsievert
Copy link
Collaborator Author

Closed via d2bf2a1.

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

1 participant