Plot.plot({
inset: 10,
grid: true,
color: {
type: "ordinal",
scheme: "cool",
legend: true
},
marks: [
Plot.dot(cars, {x: "power (hp)", y: "economy (mpg)", fill: "cylinders"}),
Plot.hull(cars, {x: "power (hp)", y: "economy (mpg)", stroke: "cylinders"}),
Plot.dot(cars, Plot.groupZ({x: "median", y: "median"}, {x: "power (hp)", y: "economy (mpg)", stroke: "cylinders", r: 5, tip: true})),
]
})