Closed
Description
Broken out of #1041 and 0c2fadf.
Instead of this:
Plot.plot({
facets: {
data: penuins,
x: "sex",
y: "island"
},
marks: [
Plot.dot(penguins, {
x: "culmen_length_mm",
y: "culmen_depth_mm"
})
]
})
You could say:
Plot.plot({
marks: [
Plot.dot(penguins, {
x: "culmen_length_mm",
y: "culmen_depth_mm",
fx: "sex",
fy: "island"
})
]
})
Or in shorthand, instead of this:
Plot.dot(penguins, {
x: "culmen_length_mm",
y: "culmen_depth_mm"
}).plot({
facets: {
data: penuins,
x: "sex",
y: "island"
}
})
You could say:
Plot.dot(penguins, {x: "culmen_length_mm", y: "culmen_depth_mm", fx: "sex", fy: "island"}).plot()