Skip to content
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

ggpairs not working #2013

Closed
danton267 opened this issue Sep 25, 2021 · 1 comment · Fixed by #2064
Closed

ggpairs not working #2013

danton267 opened this issue Sep 25, 2021 · 1 comment · Fixed by #2064
Assignees
Labels

Comments

@danton267
Copy link
Member

danton267 commented Sep 25, 2021

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

@cpsievert
Copy link
Collaborator

cpsievert commented Nov 1, 2021

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>>.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants