#install packages MASS (goes with Venables and Ripley) and DAAG (Maindonald book) using installer #lab session based on pages 20-23 of Maindonald library(MASS) data(Animals) attach(Animals) body brain #simple plot in R for continuous variables plot(body, brain) #plot of observed weights of animals and their brains plot(sqrt(body), sqrt(brain)) #sqrt transformed plot #Simple table in R for count variables library(DAAG) library(lattice) data(possum) table(possum$Pop, possum$sex) #simple two way plot of possum data xyplot(totlngth ~ age | sex*Pop, data=possum)