SCategorical1D-1-19 - Wednesday January 19, 2011 Last time:...

Info iconThis preview shows pages 1–4. Sign up to view the full content.

View Full Document Right Arrow Icon
Wednesday January 19, 2011 Last time: Lab 1: Intro R Today: Categorical 1-D Next Time: Lab 2: Categorical 1-D Announcements: HW 1 due now HW 2 due 1/26 12:30pm Blackboard folder; B-W copy in class Review Summary Rebecca Nugent, Department of Statistics, Carnegie Mellon University, 2011 1
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Categorical 1-Dim Structure: How could we summarize this data? What information would you report? Example Data: (from MASS library, UScereal data set) library(MASS) mfr<-UScereal$mfr n<-length(mfr) (or n<-nrow(UScereal)) table(mfr) table(mfr)/n To show the diFerences among categories, need to use area plots . Rebecca Nugent, Department of Statistics, Carnegie Mellon University, 2011 2
Background image of page 2
Bar Charts: rectangular bar is created for each unique value in a table of categorical values; area of bar is proportional to % of observations with the categ. value. Bars usually have equal width. R : load graphics library; barplot( ) barplot(table(mfr),col="red",main="Barplot: Cereal Manufacturer Frequencies", ylab="Count")
Background image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 4
This is the end of the preview. Sign up to access the rest of the document.

Page1 / 4

SCategorical1D-1-19 - Wednesday January 19, 2011 Last time:...

This preview shows document pages 1 - 4. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online