powered by
Compares empirical data to a normal distribution with the same mean and standard deviation.
PlotDistDensityNormal(frm, xvar, title)
data frame to get values from
name of the independent (input or model) column in frame
title to place on plot
Plots the empirical density, the theoretical matching normal, the mean value, and plus/minus one standard deviation from the mean.
# NOT RUN { set.seed(52523) d <- data.frame(wt=100*rnorm(100)) PlotDistDensityNormal(d,'wt','example') # }
Run the code above in your browser using DataLab