{
  "name": "Jitter controls in base R stripchart() and related R and ggplot2 functions",
  "description": "Compares how four R functions expose jitter: argument name, default, what the number means, and whether a seed is offered. Compiled from the R manual pages for stripchart and jitter and the ggplot2 reference pages for geom_jitter and position_jitter.",
  "page": "https://casrai.org/guides/stripchart-r",
  "publisher": "CASRAI",
  "license": "https://creativecommons.org/licenses/by/4.0/",
  "dateModified": "2026-11-18T17:43:37Z",
  "temporalCoverage": null,
  "spatialCoverage": null,
  "columns": [
    {
      "name": "Function",
      "unit": "",
      "description": ""
    },
    {
      "name": "Jitter argument",
      "unit": "",
      "description": ""
    },
    {
      "name": "Default",
      "unit": "",
      "description": ""
    },
    {
      "name": "Meaning of the value",
      "unit": "",
      "description": ""
    },
    {
      "name": "Has a seed argument",
      "unit": "",
      "description": ""
    }
  ],
  "rows": [
    {
      "Function": "graphics::stripchart(method = \"jitter\")",
      "Jitter argument": "jitter",
      "Default": "0.1",
      "Meaning of the value": "Amount of jitter used when method = \"jitter\"",
      "Has a seed argument": "No"
    },
    {
      "Function": "base::jitter()",
      "Jitter argument": "amount (and factor)",
      "Default": "amount = NULL, factor = 1",
      "Meaning of the value": "Noise x + amount * runif(n, -1, 1); NULL gives factor * d/5, with d about the smallest gap between unique values",
      "Has a seed argument": "No"
    },
    {
      "Function": "ggplot2::geom_jitter()",
      "Jitter argument": "width, height",
      "Default": "NULL (40% of data resolution)",
      "Meaning of the value": "Added in both directions, so total spread is twice the value",
      "Has a seed argument": "Not in usage; use position_jitter"
    },
    {
      "Function": "ggplot2::position_jitter()",
      "Jitter argument": "width, height, seed",
      "Default": "NULL; seed = NA",
      "Meaning of the value": "Same as geom_jitter; seed makes jitter reproducible",
      "Has a seed argument": "Yes"
    }
  ],
  "sources": [
    {
      "title": "stripchart {graphics}, R manual",
      "url": "https://stat.ethz.ch/R-manual/R-devel/library/graphics/html/stripchart.html",
      "accessed": "2026-11-18"
    },
    {
      "title": "jitter {base}, R manual",
      "url": "https://stat.ethz.ch/R-manual/R-devel/library/base/html/jitter.html",
      "accessed": "2026-11-18"
    },
    {
      "title": "geom_jitter, ggplot2 reference",
      "url": "https://ggplot2.tidyverse.org/reference/geom_jitter.html",
      "accessed": "2026-11-18"
    },
    {
      "title": "position_jitter, ggplot2 reference",
      "url": "https://ggplot2.tidyverse.org/reference/position_jitter.html",
      "accessed": "2026-11-18"
    }
  ]
}