qqtrunc: Create a q-q plot for a truncated random variable.

Description Usage Arguments

View source: R/qqtrunc.R

Description

This function produces a q-q plot of sample quantiles against theoretical quantiles for a truncated random variable

Usage

1
2
3
4
qqtrunc(x, spec, a = -Inf, b = Inf,
  title = "Truncated Distribution Q-Q Plot",
  xlabel = "Theoretical Quantiles", ylabel = "Sample Quantiles",
  params = NULL, ...)

Arguments

x

A numeric vector of sample values

spec

A character vector for the name of the distribution (e.g., "norm")

a

The minimum value allowed in the distribution (inclusive).

b

The maximum value allowed in the distribution (inclusive).

title

Plot title

xlabel

Label for the X-axis

ylabel

Label for the Y-axis

params

A list of distribution parameter name/value pairs

...

Distribution parameter arguments. Only used if 'params' is NULL.


dereksonderegger/truncdist documentation built on May 17, 2019, 1:13 a.m.