Skip to content

ggpairs not working #2013

Description

@danton267
library(plotly)
library(GGally)
 
data(tips, package = "reshape")

p <- ggpairs(
      tips[, c(1, 3, 4, 2)],
      upper = list(continuous = "density", combo = "box_no_facet"),
      lower = list(continuous = "points", combo = "dot_no_facet")
)

ggplotly(p)

results in the following error Error in `[.data.frame`(g, , c("fill_plotlyDomain", "fill")) : undefined columns selected

Activity

  1. cpsievert commented on Nov 1, 2021

    @cpsievert
    Collaborator

    The (first) error you've reported here is actually a duplicate of #1562. Here's a minimal reprex:

    df <- data.frame(
      x = rep(c(2, 5, 7, 9, 12), 2),
      y = rep(c(1, 2), each = 5)
    )
    p <- ggplot(df, aes(x, y)) + geom_tile(colour = "grey50")
    ggplotly(p)

    After fixing that (via #2063), however, there's another unrelated error that I'll address separately in #2064

    Error: Can't join on `x$group` x `y$group` because of incompatible types.
    ℹ `x$group` is of type <factor<c6b9b>>>.
    ℹ `y$group` is of type <integer>>.
  2. added a commit that references this issue on Nov 1, 2021
    873705c
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions