plotNorm {QuantPsyc} | R Documentation |
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
plotNormX(x)
plotNormXm(x, im)
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 t.d.fletcher05@gmail.com
See Also
Examples
# plot.normX
data(USJudgeRatings) # data packaged with R
plotNormX(USJudgeRatings$CONT)
# plot all 12 variables in USJudgeRatings, using function plotNormXm
data(USJudgeRatings)
plotNormXm(USJudgeRatings, 12)
[Package QuantPsyc version 1.6 Index]