Public
Edited
Aug 22, 2023
Insert cell
Insert cell
penguins = d3.csv(
"https://raw.githubusercontent.com/allisonhorst/palmerpenguins/master/inst/extdata/penguins.csv",
d3.autoType
)
Insert cell
import { aq, op } from '@uwdata/arquero';
Insert cell
pen = aq.from(penguins)
Insert cell
pen.view()
Insert cell
pen_sub = pen
.filter(d => op.includes(d.island, 'Torgersen'))
Insert cell
pen_sub
Insert cell
plot_pen = function(df) {
return Plot.plot({
grid: true,
inset: 10,
color: {legend: true},
marks: [
Plot.frame(),
Plot.dot(df, {x: "bill_length_mm", y: "bill_depth_mm", stroke: "green"})
]
});
}
Insert cell
plot_pen(pen_sub)
Insert cell
plot_pen(pen)
Insert cell
pen.view(width = 10)
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