plotNorm | R Documentation |
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.
plotNormX(x) plotNormXm(x, im)
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 |
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.
A graph of density of x.
Thomas D. Fletcher t.d.fletcher05@gmail.com
eda.uni
# 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.