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

Closed

Description

@chriddyp

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

Activity

  1. chriddyp commented on Aug 14, 2015

    @chriddyp
    MemberAuthor

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

  2. cpsievert commented on Aug 14, 2015

    @cpsievert
    Collaborator

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

  3. cpsievert commented on Aug 14, 2015

    @cpsievert
    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions