eda.uni: Plots for Exploratory Data Analysis

eda.uniR Documentation

Plots for Exploratory Data Analysis

Description

This function is a modified version of eda.shape found in the S+ Guide to Statistics, v1, p. 124. It is based on work by Tukey (1977) and each plot is described in more detail in Ch. 4 of Cohen et al. Creates 4 plots useful in assesing univariate distributions of data.

Usage

eda.uni(x, title = "")

Arguments

x

A univariate data object such as column of variable from a data.frame()

title

Title printed above first plot in upper left corner

Details

Simply provides a histogram, smoothed histogram, qq-plot, and boxplot for x.

Value

A single graph object with 4 basic plots.

Author(s)

Thomas D. Fletcher t.d.fletcher05@gmail.com

References

Cohen, J., Cohen, P., West, S. G., & Aiken, L. S. (2003). Applied multiple regression/ correlation analysis for the behavioral sciences, 3rd ed. Mahwah, NJ: Lawrence Erlbaum Associates. Chapter 4, Data Visualization, exploration, and assumption checking: Diagnosing and solving regression problems.

Insightful (2001). S-Plus 6 for Windows Guide to Statistics, Volume 1. Seattle: Insightful.

Tukey (1977). Exploratory Data Analysis. Reading, MA: Addison-Wesley.

See Also

hist, plot.density, qqnorm, boxplot

Examples


# create negatively skewed dat with 100 observations
xc <-  -rchisq(100,3)	
eda.uni(xc)


QuantPsyc documentation built on June 4, 2022, 1:06 a.m.