R/plotNormX.R

"plotNormX" <-
function (x)
{
plot (density(x, na.rm=TRUE), col=4, main = paste("Density of ", deparse(substitute(x))),
sub = "With Corresponding Normal" )
lines ( density(qnorm (ppoints(length (x[!(is.na(x))])),
mean(x, na.rm=TRUE), sd(x, na.rm=TRUE))), lty=2, col=2)
}

Try the QuantPsyc package in your browser

Any scripts or data that you put into this service are public.

QuantPsyc documentation built on June 4, 2022, 1:06 a.m.