Gallery / Bars & columns

bar

Deaths in six English counties, 1876 to 1882

The two-way table Edgeworth used to develop the analysis of variance, drawn as side-by-side bars decades before Fisher named the method.

Deaths in six English counties, 1876 to 1882

Source

Svelte, builder, JSON

<script lang="ts">
  import {
    GeomBar,
    GGPlot,
    Labs,
    ScaleFillDiscrete,
    ThemeFew,
  } from "@ggsvelte/svelte";

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

<GGPlot
  data={edgeworthDeaths}
  aes={{ x: "year", fill: "county", weight: "deaths" }}
  key={(row) => `${row.year}:${row.county}`}
  legendFocus
  width={640}
  height={400}
>
  <ThemeFew />
  <ScaleFillDiscrete scheme="tableau10" />
  <Labs
    title="Deaths in six English counties, 1876–82"
    subtitle="Edgeworth's two-way table, decades before Fisher named the method"
    x="Year"
    y="Deaths per million"
    fill="County"
  />
  <GeomBar position="dodge" />
</GGPlot>

Meta

Details

Family
Bars & columns
Source
bar/dodged
Rendering
SVG
Techniques

bar · count · dodge · fill · legend · weight · theme · palette