I am trying to replicate the example shown here : https://quarto.org/docs/interactive/ojs/ but instead of using the csv file I am using the penguins data set and I am not able to get the plots showing up when I used the transpose function but it work when I use the csv file found [here](https://github.com/quarto-dev/quarto-web/blob/main/docs/interactive/ojs/palmer-penguins.csv) . 

````
---
title: "test observ"
format: html
execute:
  echo: false
---

## Quarto
``` {r, include=FALSE}
library("palmerpenguins")
ojs_define(data = penguins)
```

```{ojs}

viewof bill_length_min = Inputs.range(
  [32, 50], 
  {value: 35, step: 1, label: "Bill length (min):"}
)

viewof islands = Inputs.checkbox(
  ["Torgersen", "Biscoe", "Dream"], 
  { value: ["Torgersen", "Biscoe"], 
    label: "Islands:"
  }
)
```

```{ojs}


filtered = transpose(data).filter(function(penguin) {
  return bill_length_min < penguin.bill_length &&
         islands.includes(penguin.island);
})
Plot.rectY(filtered, 
  Plot.binX(
    {y: "count"}, 
    {x: "body_mass", fill: "species", thresholds: 20}
  ))
  .plot({
    facet: {
      data: filtered,
      x: "sex",
      y: "species",
      marginRight: 80
    },
    marks: [
      Plot.frame(),
    ]
  }
)
```
````


This is what I get the plots are not showing. When I use the csv the plots show up. 

![image](https://user-images.githubusercontent.com/21668964/185757626-5390586d-64d4-4897-9968-9ef572be973c.png)

cscheid
2022-08-20T16:45:34Z
meldarionqeusse
v1.2
closed
ObservableJS penguins exmaple does not work with transpose but works if you load csv file.
https://github.com/quarto-dev/quarto-cli/issues/2018