Learn R Programming

QuantPsyc (version 1.6)

eda.uni: 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

Value

A single graph object with 4 basic plots.

Details

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

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

Run this code
# NOT RUN {
# create negatively skewed dat with 100 observations
xc <-  -rchisq(100,3)	
eda.uni(xc)

# }

Run the code above in your browser using DataLab