Unlisted
Edited
Dec 12, 2023
Fork of Input tables
Insert cell
Insert cell
penguinsAq = aq.from(penguins)
Insert cell
penguinsMeta = penguinsAq.select(["species", "island", "sex"]).dedupe()
Insert cell
Insert cell
Insert cell
viewof tab = Inputs.table(penguinsMeta, {
header: {
island: "island_demo",
...Object.fromEntries(
penguinsMeta
.columnNames()
.filter((name) => name.startsWith("s"))
.map((name) => [name, `${name}_tab`])
)
}
})
Insert cell
penguinsSub = penguinsAq.join(aq.from(tab))
Insert cell
Plot.plot({
marks: [
Plot.barY(penguinsSub, {x: "culmen_length_mm", y: "body_mass_g", sort: {x: "y", reverse: true}}),
Plot.ruleY([0])
]
})
Insert cell

Purpose-built for displays of data

Observable is your go-to platform for exploring data and creating expressive data visualizations. Use reactive JavaScript notebooks for prototyping and a collaborative canvas for visual data exploration and dashboard creation.
Learn more