Skip to content

pheatmap() not implemented #2026

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
danton267 opened this issue Sep 26, 2021 · 1 comment
Closed

pheatmap() not implemented #2026

danton267 opened this issue Sep 26, 2021 · 1 comment
Assignees
Labels

Comments

@danton267
Copy link
Member


library(plotly)
library(ggplot2)
library(pheatmap)

dat <- matrix(rnorm(100, 3, 1), ncol=10)
names(dat) <- paste("X", 1:10)

p <- pheatmap(dat, display_numbers = T)

ggplotly(p)

yields the following error:

Error in UseMethod("ggplotly", p) : 
  no applicable method for 'ggplotly' applied to an object of class "pheatmap"
@cpsievert
Copy link
Collaborator

Looks as though {pheatmap} is implemented at the {grid} level, so like #2020 and #2028, it won't make sense to add support for it any time soon.

As a workaround, I'd suggest using the {heatmaply} package instead, which appears to be quite similar

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

4 participants