Usage Arguments Details Value Author(s)
1 | normalDistHist2(mn1, sd1, n1, mn2, sd2, n2, stack = FALSE, aspect = 2/5)
|
mn1 |
Mean for Distribution 1 |
sd1 |
SD for Distribution 1 |
n1 |
N for scaling Histogram 1 (convert density to count) |
mn2 |
Mean for Distribution 1 |
sd2 |
SD for Distribution 1 |
n2 |
N for scaling Histogram 1 (convert density to count) |
stack |
stack plots vertically or no; defaults to FALSE (side-by-side plots) |
aspect |
aspect ratio for plots; defaults to 2/5 |
Plot histograms of two different theoretical normal distributions, given Mean, SD and N for each.
ToDo:
print parameters on each facet. See largeNumbers() below.
allow for overlaid histograms (single facet).
add label (geom_text()) for parameters and N to each facet.
add a vlines for means
optionally draw rectangles around mean+-Xsd for each distribution
optionally specify colors of histograms
used for its side-effect of creating a plot
Dave Braze davebraze@gmail.com
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.