plot.norm {QuantPsyc} | 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.
plot.normX(x, ...) plot.normXm(x, ...)
x |
any data object such as a column(s) or variable(s) from a data.frame |
... |
to be determined |
plot.normX
is useful for single use (univariate) objects, but plot.normXm
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 tom.fletcher.mp7e@statefarm.com
# plot.normX data(USJudgeRatings) # data packaged with R plot.normX(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 for (i in 1:12) { plot.normXm(USJudgeRatings) } dev.off()