eda.shape: Empirical Data Analysis

Description Usage Arguments Value References See Also Examples

Description

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

Usage

1

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

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
##---- 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))
  }

Rsafd documentation built on May 2, 2019, 5:20 p.m.