Gallery / Surfaces & grids

contour

Contours of height on a grid

Contours when the input is a continuous surface on a grid.

Contours of height on a grid

Source

Svelte, builder, JSON

<script lang="ts">
  import {
    CoordFixed,
    GeomContour,
    GGPlot,
    Inspect,
    Labs,
    ThemeClassic,
  } from "@ggts-sh/svelte";

  import { maungaWhau } from "./data.js";
</script>

<GGPlot
  data={maungaWhau}
  aes={{ x: "east", y: "north", z: "height" }}
  width={640}
  height={400}
>
  <GeomContour bins={10} linewidth={1} />
  <CoordFixed />
  <ThemeClassic />
  <Labs
    title="Contours of height on a grid"
    subtitle="Elevation bands on Maunga Whau from a regular height matrix"
    x="Metres east"
    y="Metres north"
  />
  <Inspect mode="x" pin />
</GGPlot>

Meta

Details

Family
Surfaces & grids
Source
contour/basic
Rendering
SVG
Techniques

contour · stat · path · grid · surface · theme