{
  "name": "Beeswarm plot functions compared: seaborn, MATLAB, SHAP and ggbeeswarm",
  "description": "Original compilation of how four documented beeswarm implementations differ in function name, point-placement rule, main parameters and introduction, compiled from the seaborn, MathWorks and SHAP documentation pages read on 2026-11-20 and the site's own ggbeeswarm guide.",
  "page": "https://casrai.org/guides/beeswarm-plot",
  "publisher": "CASRAI",
  "license": "https://creativecommons.org/licenses/by/4.0/",
  "dateModified": "2026-11-20T11:30:30Z",
  "temporalCoverage": null,
  "spatialCoverage": null,
  "columns": [
    {
      "name": "Tool",
      "unit": "",
      "description": ""
    },
    {
      "name": "Function",
      "unit": "",
      "description": ""
    },
    {
      "name": "Placement rule",
      "unit": "",
      "description": ""
    },
    {
      "name": "Key parameters",
      "unit": "",
      "description": ""
    },
    {
      "name": "Version note",
      "unit": "",
      "description": ""
    }
  ],
  "rows": [
    {
      "Tool": "seaborn (Python)",
      "Function": "seaborn.swarmplot",
      "Placement rule": "Categorical scatter with points adjusted along the categorical axis; overlap and a warning when too dense",
      "Key parameters": "size (default 5), dodge, native_scale, orient, hue, warn_thresh (default 0.05)",
      "Version note": "native_scale added in 0.13.0; docs 0.13.2"
    },
    {
      "Tool": "MATLAB",
      "Function": "swarmchart",
      "Placement rule": "Random jitter weighted by a Gaussian kernel density estimate of y (XJitter='density' default)",
      "Key parameters": "XJitter (none, density, rand, randn), XJitterWidth, YJitter",
      "Version note": "Introduced R2020b; YJitter added R2023b"
    },
    {
      "Tool": "SHAP (Python)",
      "Function": "shap.plots.beeswarm",
      "Placement rule": "One dot per sample on each feature row; x position is the SHAP value, colour is the feature value",
      "Key parameters": "max_display (10), order, color, alpha, s (16), group_remaining_features, show",
      "Version note": "Takes a shap Explanation (samples x features)"
    },
    {
      "Tool": "ggbeeswarm (R)",
      "Function": "geom_beeswarm",
      "Placement rule": "See the site's ggbeeswarm guide",
      "Key parameters": "See the site's ggbeeswarm guide",
      "Version note": "See the site's ggbeeswarm guide"
    }
  ],
  "sources": [
    {
      "title": "seaborn.swarmplot documentation",
      "url": "https://seaborn.pydata.org/generated/seaborn.swarmplot.html",
      "accessed": "2026-11-20"
    },
    {
      "title": "MathWorks swarmchart",
      "url": "https://www.mathworks.com/help/matlab/ref/swarmchart.html",
      "accessed": "2026-11-20"
    },
    {
      "title": "SHAP shap.plots.beeswarm",
      "url": "https://shap.readthedocs.io/en/latest/generated/shap.plots.beeswarm.html",
      "accessed": "2026-11-20"
    }
  ]
}