Skip to content

Plotly error for large facet_grid #640

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
hmaeda opened this issue Jul 2, 2016 · 1 comment
Closed

Plotly error for large facet_grid #640

hmaeda opened this issue Jul 2, 2016 · 1 comment
Labels

Comments

@hmaeda
Copy link

hmaeda commented Jul 2, 2016

I think I might have found a bug associated with the ggplotly function in the plotly package.

In the following bit of code, the result works for n = 9 but not n >= 10.

Can anybody suggest a work around, or at least a reason for the bug?

require(data.table)
require(plotly)
require(ggplot2)

n <- 10
jj <- CJ(week=c(1:n),day=c('Sun','Mon','Tue','Wed','Thu','Fri','Sat'),hour=c(0:23))
jj[,day:=factor(day,levels = c('Sun','Mon','Tue','Wed','Thu','Fri','Sat'))]
jj[,n:=rnorm(nrow(jj))]
p1 <- ggplot(jj,aes(x=hour,y=n))+geom_line()+facet_grid(week~day)
p1
p1 <- ggplotly(p1)
p1

Thanks,

@alyst
Copy link
Contributor

alyst commented Jul 12, 2016

The PR #620 should fix the bug, but since the package undergoes heavy refactoring at the moment, I'm not sure the owner would merge it to the master.

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

3 participants