Skip to main content

Logos at points-for vs points-against

430420410400390380370360350340330320310↓ Points against300350400450500Points for →
import * as Plot from "@observablehq/plot";
import { STANDINGS } from "@sportsdataverse/examples/data";
import { loadLeague } from "@sportsdataverse/sdvplot";
import { logos } from "@sportsdataverse/sdvplot/plot";

await loadLeague("nfl");
Plot.plot({
grid: true,
x: { label: "Points for" },
y: { label: "Points against", reverse: true },
marks: [logos(STANDINGS, { league: "nfl", x: "pf", y: "pa", team: "team", height: 0.1 })],
});

Tags: plot · logos · nfl. All sdvplot examples.