doctorates {nutshell} | R Documentation |
This data set contains information on the number of doctorate degrees awarded in the United Sates between 2001 and 2006.
data(doctorates)
A data frame with 6 observations on the following 7 variables.
year
engineering
science
education
health
humanities
other
This data set is used as an example in the book "R in a Nutshell" from O'Reilly Media.
This data is from the Statistical Abstract of the United States. You can download the data from http://www.census.gov/compendia/statab/tables/09s0785.xls
data(doctorates) # make this into a matrix: doctorates.m <- as.matrix(doctorates[2:7]) rownames(doctorates.m) > doctorates.m barplot(doctorates.m,beside=TRUE,horiz=TRUE,legend=TRUE,cex.names=.75) barplot(t(doctorates.m),legend=TRUE,ylim=c(0,66000))