R -- Introduction & Programming    Examples

  1. January 30, 2015 colloquium, Introduction to R Graphics, continued (R Script Files)
  2. January 23, 2015 colloquium, Introduction to R Graphics (R Script File): 23Jan15.R.
  3. February 7, 2014 colloquium, Introduction to R Graphics
  4. R Graphics Intro (Rgraph.R)
  5. Sweave examle #1: egSweave1.Rnw (R-sweave file mixed with LaTeX document codes), egSweave1.tex (LaTeX document extracted from egSweave1.Rnw by running R command Sweave("egSweave1.Rnw")), egSweave1.R (R code chunks extracted from egSweave1.Rnw by running R command Stangle("egSweave1.Rnw")). In addition, 4 graphics files generated by Sweave command that were placed in sub-folder figures (this folder was supposed to exist prior to the use of Sweave command): Eg1-fitLine.pdf, Eg1-norm1.pdf, Eg2-norm2.pdf, Eg1-binom1.pdf. The shaded normal curves was created by Pdf curve plot and shading (see Probability Density Curve and Shading) and the normal approximation to binominal probabilities by binomCLT function I wrote (source binomCLT.R to get the function).
  6. Example #1
  7. Example #2, graphics package. pars.R (plotting characters, line types, colors, and text justification).
  8. Probability Density Curve and Shading
  9. Matrix and Data Frame Example #1 (matrixEg1.txt, an R session output file, plots not included).
  10. Matrix and Data Frame Example #2 (matrixEg2.txt, an R session output file, plots not included).
  11. Linear Model Simulation #1 (simu1.txt, an R session output file, plots not included).
  12. 8oct10.R (R script file showing 3d plot from package rgl, a linear model simulation, linear model example, pima data from package faraway)
  13. A user-created function example: Hodges-Lehmann estimate (two versions).

2015-01-30