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

top annotation showing no hovertext #304

Open
ricoderks opened this issue Apr 2, 2024 · 2 comments
Open

top annotation showing no hovertext #304

ricoderks opened this issue Apr 2, 2024 · 2 comments
Labels

Comments

@ricoderks
Copy link

If I added a top annotation with col_side_colors the hovertext is not shown, except for the first column. This only happens when the plot_method is set to "plotly". When I use row_side_colors the hovertext is nicely shown for each cell.
It works for both when I set the plot_method to "ggplot", but then I don't have the colorbars for the annotation.

An example:

library(heatmaply)

set.seed(123)
m <- matrix(rnorm(100),
            nrow = 5)

col_ann <- data.frame(group1 = letters[1:20])
row_ann <- data.frame(group2 = LETTERS[1:5])

heatmaply(m,
          col_side_colors = col_ann,
          row_side_colors = row_ann,
          plot_method = "ggplot")

heatmaply(m,
          col_side_colors = col_ann,
          row_side_colors = row_ann,
          plot_method = "plotly")

I'am using version 1.5.0 of heatmaply.

cheers, Rico

@ricoderks ricoderks added the bug label Apr 2, 2024
@talgalili
Copy link
Owner

Hi,
I can't reproduce.
Could you please share a screenshot with the issue?
And also share
sessionInfo()
?

Thanks.

@ricoderks
Copy link
Author

ricoderks commented May 21, 2024

Hi,

I added two screenshots. In the first screenshot the mouse hovers over the first column of the top annotation and in the second screenshot the mouse hovers over the fourth column (unforntunately the mouse pointer is not recorded on the screenshot).
I used the same code as above.
plotly1
plotly2

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