We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Thanks to @goodekat for the reprex
library(plotly) library(tidyr) m <- matrix(rnorm(9), nrow = 3, ncol = 3) m_gathered <- data.frame(m) %>% gather(key = column) %>% mutate(row = factor(rep(c("X1", "X2", "X3"), 3))) %>% select(column, row, value) p <- ggplot(m_gathered, aes(x = column, y = row, fill = value)) + geom_tile() # Apply plotly to ggplot heatmap - deadspace in the middle of (X1, X1) ggplotly(p)
The fix seems easy -- change hoverinfo="none" to hoverinfo="skip" when creating the colorbar trace
hoverinfo="none"
hoverinfo="skip"
https://github.com/ropensci/plotly/blob/7031a25474f0dc275d20897810682c530cd1fbf3/R/ggplotly.R#L1303
The text was updated successfully, but these errors were encountered:
1eb3079
Merge pull request #1382 from ropensci/colorbar-hoverinfo
288c86e
use hoverinfo skip instead of none for invisible ggplotly() colorbar trace, closes #1381
No branches or pull requests
Thanks to @goodekat for the reprex
The fix seems easy -- change
hoverinfo="none"
tohoverinfo="skip"
when creating the colorbar tracehttps://github.com/ropensci/plotly/blob/7031a25474f0dc275d20897810682c530cd1fbf3/R/ggplotly.R#L1303
The text was updated successfully, but these errors were encountered: