Skip to main content

headshotMark

[
  {
    "qb": "3139477",
    "yards": 3928,
    "tds": 26,
    "sdv_id": "3139477",
    "sdv_src": "https://a.espncdn.com/combiner/i?img=/i/headshots/nfl/players/full/3139477.png",
    "sdv_width": 55.04587155963303,
    "sdv_height": 40
  }
]
import { headshotMark } from "@sportsdataverse/sdvplot/g2";

const rows = [{ qb: "3139477", yards: 3928, tds: 26 }];
headshotMark(rows, { x: "yards", y: "tds", player: "qb", league: "nfl", size: 40 }).data;

Tags: docstring · headshotMark. All sdvplot examples.