I just joined this list, and I see in the archives that there have been several answers to this already, but I'll add another one:
> install.packages(mosaic) > example(xpnorm) xpnorm() is a function that behaves much like pnorm() but provides more verbose output and a plot to go with the lower "tail" probability. If you run in RStudio, the last example will add a slider. A fancier version of this will likely be available soon with a manipulate=TRUE option. The plot is a bit crude at the moment and looks better in some window sizes than in others. I happy to receive suggestions for improvement. The current version of mosaic on CRAN is a beta release. A new version should be there in a few days and we are working to have as stable, robust, and comprehensive a package as we can muster ready my JSM. There are other x-functions in the package as well (xhistogram(), xchisq.test, etc.) that add extra features to the plain-vanilla functions without the initial x. There are a number of other things in this package (and in the works) to aid in teaching statistics. Perhaps in a future post we can say more about other things we are working on. Watch for new between now and JSM or catch one of us there. -----Randy Pruim (for Nick Horton and Danny Kaplan, co-conspiratoRs) Begin forwarded message: >> Date: Sat, 2 Apr 2011 14:12:05 -0700 (PDT) >> From: Ali Zanaty <[email protected]> >> To: [email protected] >> Subject: [R-sig-teaching] Plotting the P value >> Message-ID: <[email protected]> >> Content-Type: text/plain >> >> Dear All R users: >> >> >> >> Can someone help me with the plotting the p-values under the normal >> curve (say). >> >> >> >> Thank you so much. >> >> >> >> Ali [[alternative HTML version deleted]] _______________________________________________ [email protected] mailing list https://stat.ethz.ch/mailman/listinfo/r-sig-teaching
