Last data update: 2014.03.03

R: Exploratory Data Anaalysis
EDAR Documentation

Exploratory Data Anaalysis

Description

Function that produces a histogram, density plot, boxplot, and Q-Q plot.

Usage

EDA(x, trim = 0.05)

Arguments

x

numeric vector. NAs and Infs are allowed but will be removed.

trim

fraction (between 0 and 0.5, inclusive) of values to be trimmed from each end of the ordered data. If trim = 0.5, the result is the median.

Details

Will not return command window information on data sets containing more than 5000 observations. It will however still produce graphical output for data sets containing more than 5000 observations.

Value

Function returns various measures of center and location. The values returned for the Quartiles are based on the definitions provided in BSDA. The boxplot is based on the Quartiles returned in the commands window.

Note

Requires package e1071.

Author(s)

Alan T. Arnholt

Examples

EDA(rnorm(100))
    # Produces four graphs for the 100 randomly
    # generated standard normal variates.

Results


R version 3.3.1 (2016-06-21) -- "Bug in Your Hair"
Copyright (C) 2016 The R Foundation for Statistical Computing
Platform: x86_64-pc-linux-gnu (64-bit)

R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()' for distribution details.

R is a collaborative project with many contributors.
Type 'contributors()' for more information and
'citation()' on how to cite R or R packages in publications.

Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for an HTML browser interface to help.
Type 'q()' to quit R.

> library(BSDA)
Loading required package: e1071
Loading required package: lattice

Attaching package: 'BSDA'

The following object is masked from 'package:datasets':

    Orange

> png(filename="/home/ddbj/snapshot/RGM3/R_CC/result/BSDA/EDA.Rd_%03d_medium.png", width=480, height=480)
> ### Name: EDA
> ### Title: Exploratory Data Anaalysis
> ### Aliases: EDA
> ### Keywords: univar
> 
> ### ** Examples
> 
> EDA(rnorm(100))
[1] "rnorm(100)"
Size (n)  Missing  Minimum   1st Qu     Mean   Median   TrMean   3rd Qu 
 100.000    0.000   -2.571   -0.626    0.049    0.078    0.052    0.593 
    Max.   Stdev.     Var.  SE Mean   I.Q.R.    Range Kurtosis Skewness 
   2.477    0.977    0.955    0.098    1.219    5.048   -0.131   -0.114 
SW p-val 
   0.925 
>     # Produces four graphs for the 100 randomly
>     # generated standard normal variates.
> 
> 
> 
> 
> 
> dev.off()
null device 
          1 
>