{
  "name": "Q-Q plot routes in R: reference distribution, line and confidence options by function",
  "description": "Compares four R functions that draw Q-Q plots (qqnorm with qqline, qqplot, ggplot2 stat_qq, car qqPlot) by the arguments their official documentation lists for the reference distribution, reference line, confidence band and grouping.",
  "page": "https://casrai.org/guides/quantile-quantile-plot-in-r",
  "publisher": "CASRAI",
  "license": "https://creativecommons.org/licenses/by/4.0/",
  "dateModified": "2026-11-16T22:06:49Z",
  "temporalCoverage": "2026",
  "spatialCoverage": null,
  "columns": [
    {
      "name": "Function",
      "unit": "",
      "description": ""
    },
    {
      "name": "Package",
      "unit": "",
      "description": ""
    },
    {
      "name": "Reference distribution",
      "unit": "",
      "description": ""
    },
    {
      "name": "Reference line",
      "unit": "",
      "description": ""
    },
    {
      "name": "Confidence band",
      "unit": "",
      "description": ""
    },
    {
      "name": "Groups",
      "unit": "",
      "description": ""
    }
  ],
  "rows": [
    {
      "Function": "qqnorm() with qqline()",
      "Package": "stats",
      "Reference distribution": "Normal; qqline has distribution = qnorm",
      "Reference line": "qqline(): probs = c(0.25, 0.75), qtype = 7",
      "Confidence band": "No band argument in the signature",
      "Groups": "Not an argument"
    },
    {
      "Function": "qqplot()",
      "Package": "stats",
      "Reference distribution": "None: compares two samples x and y",
      "Reference line": "abline(a = 0, b = 1) in the manual's example",
      "Confidence band": "conf.level and conf.args; exact band if product of sample sizes < 10000",
      "Groups": "Not an argument"
    },
    {
      "Function": "stat_qq() with stat_qq_line()",
      "Package": "ggplot2",
      "Reference distribution": "distribution = stats::qnorm, dparams = list()",
      "Reference line": "line.p = c(0.25, 0.75), fullrange = FALSE",
      "Confidence band": "No band argument in the signature",
      "Groups": "Through aesthetics, e.g. colour = factor(cyl)"
    },
    {
      "Function": "qqPlot()",
      "Package": "car",
      "Reference distribution": "distribution = 'norm'; 't' or 'norm' for lm objects",
      "Reference line": "line = 'quartiles', 'robust' or 'none'",
      "Confidence band": "envelope = TRUE, FALSE or a level such as 0.95",
      "Groups": "groups argument and formula method"
    }
  ],
  "sources": [
    {
      "title": "R stats manual: qqnorm, qqline, qqplot",
      "url": "https://stat.ethz.ch/R-manual/R-devel/library/stats/html/qqnorm.html",
      "accessed": "2026-11-14"
    },
    {
      "title": "ggplot2: geom_qq and stat_qq_line",
      "url": "https://ggplot2.tidyverse.org/reference/geom_qq.html",
      "accessed": "2026-11-14"
    },
    {
      "title": "car reference manual v3.1-5",
      "url": "https://cran.r-project.org/web/packages/car/refman/car.html",
      "accessed": "2026-11-14"
    }
  ]
}