Code
.rectY(data,
Plot.stackY(
Plot.binX(
Ploty: "count"},
{x: "body_mass_g", fill: "species", thresholds: 20})
{
).plot({
)facet: {
,
datax: "sex"
,
}marks: [Plot.frame()]
})
::: {.panel-tabset}
## Plot
```{ojs}
Plot.rectY(data,
Plot.stackY(
Plot.binX(
{y: "count"},
{x: "body_mass_g", fill: "species", thresholds: 20})
)
).plot({
facet: {
data,
x: "sex"
},
marks: [Plot.frame()]
})
```
## Data
```{ojs}
Inputs.table(filtered)
```
:::
.rectY(data,
Plot.stackY(
Plot.binX(
Ploty: "count"},
{x: "body_mass_g", fill: "species", thresholds: 20})
{
).plot({
)facet: {
,
datax: "sex"
,
}marks: [Plot.frame()]
})
.table(filtered) Inputs