eda.shape {Rsafd}R Documentation

Empirical Data Analysis

Description

Four graphical representations of the empirical features of a numeric vector interpreted as a sample from a given statistical distribution

Usage

eda.shape(x)

Arguments

x

A numeric vector whose entries are interpreted as observations from a given distribution

Value

Produce histogram, normal Q-Q plot, box-plot and kernel density estimator of the numerical vector given as parameter.

References

S-Plus help files

See Also

hist, boxplot,qqplot,density,

Examples

##---- Should be DIRECTLY executable !! ----
##-- ==>  Define data, use random,
##--	or do  help(data=index)  for the standard data sets.

## The function is currently defined as
function(x)
{
    par(mfrow = c(2, 2))
    hist(x)
    boxplot(x)
    iqd <- summary(x)[5] - summary(x)[2]
    plot(density(x, width = 2 * iqd), xlab = "x", ylab = "", type = "l")
    qqnorm(x)
    qqline(x)
    par(mfrow = c(1, 1))
  }

[Package Rsafd version 1.2 Index]