histigt {ig}R Documentation

Histogram, box-plot and estimated pdf of the IGTD

Description

The function histigt() produces a histogram and a box-plot of the data. Also, the estimated pdf may be sketched on the histogram.

Usage

  histigt(x, kernel = "normal", boxPlot = "TRUE", densityLine = "FALSE", 
          mainTitle = "Histogram and boxplot", xLabel = "Data", 
          yLabel = "Frequency", yRange = NULL, colourHistogram = "blue", 
          colourDensity = "black", colourBoxPlot = "blue")

Arguments

x Vector of observations.
kernel Kernel of the pdf of the associated symmetrical distribution by means of which the IGTD is obtained. The kernels: "laplace", "logistic", "normal" and "t" are available.
boxPlot Logical; if TRUE (default), the boxplot is plotted, otherwise not.
densityLine Logical; if TRUE, the pdf is sketched on the histogram, otherwise not.
mainTitle Main title of the graph.
xLabel A title for the x axis.
yLabel A title for the x axis.
yRange Limit for the y axis.
colourHistogram Color inside the histogram.
colourDensity Color of the estimated pdf curve.
colourBoxPlot Color inside the boxplot.

Details

The function histigt() simultaneously produces a box-plot and a histogram for the data. The box-plot may be supressed by the instruction boxPlot = FALSE. Also, the estimated pdf may be sketched on the histogram adding the instruction densityLine = TRUE.

Value

The function histigt() carries out an exploratory graphical analysis and can be also useful as a simple goodness-of-fit tool.

Author(s)

Víctor Leiva <victor.leiva@uv.cl; victor.leiva@yahoo.com>,
Hugo Hernández <hugo.hernandez.p@gmail.com> and
Antonio Sanhueza <asanhueza@ufro.cl>.

References

Sanhueza, A., Leiva, V., Balakrishnan, N. (2008). A new class of inverse Gaussian type distributions. Metrika (in press).

Examples

## Generates a sample from the IGTD with normal kernel 
x <- rigt(300, mu = 1.0, lambda = 1.0, kernel = "normal")

## Produces a histogram for the IGTD with normal kernel from the data x
histigt(x, 
        mainTitle = "", 
        xLabel = "Data",
        kernel = "normal", 
        colourHistogram = 4, 
        colourBoxPlot = 4)

[Package ig version 1.2 Index]