plotHalfT: Plot the half-t distribution.

View source: R/helper-functions.R

plotHalfTR Documentation

Plot the half-t distribution.

Description

Plot the density or distribution function of a half-t distribution.

Usage

plotHalfT(df = 7, scale = 1, max = 0.999, density = TRUE, add = FALSE, ...)

Arguments

df

Degrees of freedom. Positive. Can be non-integer, and can be Inf.

scale

Dispersion parameter.

max

A quantile, defaulting to 0.999. The x-axis for the plot extends from 0 to this quantile.

density

Whether to plot the density function (the default) or the distribution function.

add

Whether to add to the current plot.

...

Other arguments, passed to functions plot and lines.

Examples

plotHalfT()
plotHalfT(df = 4, add = TRUE, col = "red")
plotHalfT(df = 4, scale = 1.1, add = TRUE, col = "blue")

StatisticsNZ/demest documentation built on Nov. 2, 2023, 7:56 p.m.