Normal Density Plot

Description

Plots the density distribution of 'x' (e.g., smoothed histogram) with an overlaying normal density plot with the same mean and SD. This is useful for 'seeing' the degree of deviance from normality.

Usage

1
2

Arguments

x

any data object such as a column(s) or variable(s) from a data.frame

im

number of items in x-multivariate to be plotted

Details

plotNormX is useful for single use (univariate) objects, but plotNormXm is more useful for creating multiple graphs (i.e., multivariate) as in sending graphs to a postcript or pdf device. See examples below.

Value

A graph of density of x.

Author(s)

Thomas D. Fletcher tom.fletcher.mp7e@statefarm.com

See Also

eda.uni

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
#	plot.normX	
data(USJudgeRatings)	# data packaged with R
plotNormX(USJudgeRatings$CONT) 

# creates a pdf file that contains plots for all 12 variables in USJudgeRatings

#	plot.normXm	
data(USJudgeRatings)	
pdf("Judge.pdf")	#writes file to working directory 
plotNormXm(USJudgeRatings, 12) 
dev.off()