Background image

Visualizes Kristen Gorman’s penguins dataset atop of her photograph of sea ice near Palmer Station on the Antarctic peninsula. Using Plot’s style option.

Plot.plot({
  margin: 30,
  inset: 10,
  grid: true,
  style: {
    padding: 10,
    color: "black",
    background: `url(${FileAttachment("data/sea-ice.jpg").href})`,
    backgroundSize: "cover"
  },
  marks: [
    Plot.frame(),
    Plot.dot(penguins, {x: "culmen_length_mm", y: "culmen_depth_mm", fill: "white", stroke: "black"})
  ]
})
✎ Suggest changes to this page