Skip to content

subplot with multiple traces doesn't work: Error in [<-.data.frame(*tmp*, c("xstart", "xend", "yend", "ystart"), : replacement element 1 has 2 rows, need 3 #265

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
chriddyp opened this issue Aug 14, 2015 · 3 comments
Labels

Comments

@chriddyp
Copy link
Member

To reproduce:

col1 <- c('A', 'B', 'C')
col2 <- c(1, 2, 3)
col3 <- c(10, 20, 30)
df <- data.frame(col1, col2, col3)

p1 <- plot_ly(df, x=col1, y=col2)
p1 <- add_trace(p1, x=col1, y=col3)

p2 <- plot_ly(df, x=col1, y=col2)

psub <- subplot(p1, p2)

Results in error:

Error in `[<-.data.frame`(`*tmp*`, c("xstart", "xend", "yend", "ystart"),  : 
  replacement element 1 has 2 rows, need 3
@chriddyp chriddyp added the bug label Aug 14, 2015
@chriddyp
Copy link
Member Author

@cpsievert - lemme know if you have time to work on this today, otherwise I'll take a crack at it

@cpsievert
Copy link
Collaborator

@chriddyp sorry, been working on #264, can have a look if you need some help though

@cpsievert
Copy link
Collaborator

ah, I should have fix coming up soon

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