[R-sig-teaching] Example(s) of Biomodal distributions
Randall Pruim
rpruim at calvin.edu
Mon Jan 16 05:31:57 CET 2012
I recently wrote a function for the mosaic package that makes it easy
to generate various kinds of plots of distributions. For example, to
plot a Binom(30,.35) distribution, you just use:
distPlot("binom",params=list(size=30, prob=.35))
and get the attached plot (if it makes it through to the list).
-------------- next part --------------
Additional arguments let you choose between different kinds of plots
(density, histogram, qq, cdf), and there is a heuristic to guess
whether the distribution is discrete or continuous and to the right
thing.
I didn't set these up to make it easy to add the shading, but I think
I could modify things to make that possible too. Stay tuned.
---rjp
On Jan 15, 2012, at 2:41 PM, AbouEl-Makarim Aboueissa wrote:
> Dear R users:
>
> I am currently teaching a course in Statistics. Can someone give an
> R code(s) to create a biomodal curve(s) with shaded area of 90% and
> with 5% in each tail
>
> With many thanks
> abou
>
>
>
> ==========================
> AbouEl-Makarim Aboueissa, Ph.D.
> Associate Professor of Statistics
> Graduate Program Coordinator
> Department of Mathematics & Statistics
> University of Southern Maine
> 96 Falmouth Street
> P.O. Box 9300
> Portland, ME 04104-9300
> USA
>
>
> Tel: (207) 228-8389
> Fax: (207) 780-5607
> Email: aaboueissa at usm.maine.edu
> aboueiss at yahoo.com
>
> Office: 301C Payson Smith
>
>
> [[alternative HTML version deleted]]
>
> _______________________________________________
> R-sig-teaching at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-sig-teaching
More information about the R-sig-teaching
mailing list