penguins = FileAttachment("./data/penguins.csv").csv(
{ typed: true }
)
Penguins dataset contains size measurements from adults foraging near Palmer Station, Antarctica.
Let us load the dataset. It is a CSV file.
Descriptive statistics
Let us plot the body mass against the flipper length.
theme_obj = FileAttachment("../../../styles/plots/geekus.ojs.json").json()
theme = theme_obj.schemePlot.plot({
color: {
legend: true,
range: theme
},
marks: [
Plot.dot(penguins, {
x: "body_mass_g",
y: "flipper_length_mm",
color: "species",
size: "body_mass_g",
tooltip: "species"
})
]
})