Function that produces a histogram, density plot, boxplot, and Q-Q plot.
Usage
EDA(x, trim = 0.05)
Arguments
x
is a numeric vector where NAs and Infs are allowed but will be
removed.
trim
is a fraction (between 0 and 0.5, inclusive) of values to be trimmed
from each end of the ordered data such that 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 used in Minitab and SPSS. The
boxplot is based on the Quartiles returned in the commands window. For more
information on the definition of the Quartiles, type ?quantile and
read about the algorithm used by type=6.
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(PASWR)
Loading required package: e1071
Loading required package: MASS
Loading required package: lattice
> png(filename="/home/ddbj/snapshot/RGM3/R_CC/result/PASWR/EDA.Rd_%03d_medium.png", width=480, height=480)
> ### Name: EDA
> ### Title: Exploratory Data Analysis
> ### 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.737 -0.680 -0.069 0.076 -0.046 0.638
Max. Stdev. Var. SE Mean I.Q.R. Range Kurtosis Skewness
2.348 1.059 1.121 0.106 1.318 5.085 -0.025 -0.340
SW p-val
0.271
> # Produces four graphs for the 100 randomly
> # generated standard normal variates.
>
>
>
>
>
> dev.off()
null device
1
>