normalDistHist2: Plot histograms of two different theoretical normal...

Usage Arguments Details Value Author(s)

Usage

1
normalDistHist2(mn1, sd1, n1, mn2, sd2, n2, stack = FALSE, aspect = 2/5)

Arguments

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

Details

Plot histograms of two different theoretical normal distributions, given Mean, SD and N for each.

ToDo:

  1. print parameters on each facet. See largeNumbers() below.

  2. allow for overlaid histograms (single facet).

  3. add label (geom_text()) for parameters and N to each facet.

  4. add a vlines for means

  5. optionally draw rectangles around mean+-Xsd for each distribution

  6. optionally specify colors of histograms

Value

used for its side-effect of creating a plot

Author(s)

Dave Braze davebraze@gmail.com


davebraze/FDB1 documentation built on May 14, 2019, 8:59 p.m.