Skip to content

d3heatmap does not render in flexdashboard when scatterD3 also used #77

@andreamrau

Description

@andreamrau

Hello,
I'm currently working on a flexdashboard in which I would like to include both a d3heatmap and a scatterD3. When d3heatmap is used by itself, it renders just fine; however, when both are present the d3heatmap does not render (regardless of whether the chunk is placed first or last). The same problem occurs in rmarkdown. Minimal reproducible example below, thanks!
-- Andrea

---
output: 
  flexdashboard::flex_dashboard:
    orientation: rows
runtime: shiny
---

```{r global, include=FALSE}
library(flexdashboard)
library(d3heatmap)
library(scatterD3)
data(mtcars)
```

scatterD3
=====================================
Renders fine.

```{r, scatterD3, eval=FALSE}
scatterD3(data = mtcars, x = wt, y = mpg, 
          point_size = 100, point_opacity = 0.5,
          hover_size = 4, hover_opacity = 1)
```

d3heatmap
===================================== 
Does not render (unless chunk above set to eval=FALSE)!

```{r, d3heatmap}
d3heatmap(mtcars, scale="column", colors="Blues")
```

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions