ropensci / iheatmapr

Complex, interactive heatmaps in R
https://docs.ropensci.org/iheatmapr
Other
267 stars 36 forks source link

iheatmapr doesn't work when on the same HTML page as a standard plotly widget #94

Closed alanocallaghan closed 1 year ago

alanocallaghan commented 1 year ago

If you include a normal plotly htmlwidget and an iheatmapr instance then neither is displayed, because of conflicting plotly version. You can fix this by upgrading to plotly 2.16. Breaking changes seem minimal

---
title: Reproducing plotly problem with iheatmapr and htmlwidgets
output: html_document
---

```{r libs, message = FALSE, warning = FALSE, results = "hide"}
library("plotly")
library("iheatmapr")
```

```{r plotly}
plot_ly(economics, x = ~pop)
```     

```{r iheatmapr}
iheatmap(as.matrix(mtcars))
```
alanocallaghan commented 1 year ago

Oh, sorry, this is an issue just on the CRAN version; this repo's on newer plotly. You should probably push that update to CRAN, though.