Lab 2: Displaying & Describing Data

Lab 2 outline

  • Intro
  • The Iris data
  • Loading data: iris
  • command: data(iris)
  • Loading packages in base R: MASS
  • command: library(MASS)
  • Loading packages from CRAN: doBy
  • Boxplots w/ iris data
  • anatomy of an R function:boxplot(…)
  • plotting arguments: xlab=, ylab=
  • arguement: cex =
  • arguement: lw =
  • Histograms w/Iris data
  • coomand: hist(…)
  • Scatterplots w/iris data

Based generally on Chapters 2 & 3, Whitlock and Schulter, 2nd Ed











Example data for Lab 2: Fisher’s Irises

Frequently used to explain/test stats procedures