Learn R Programming

nutshell (version 1.02)

doctorates: Doctorates Awarded in the United States, 2001-2006

Description

This data set contains information on the number of doctorate degrees awarded in the United Sates between 2001 and 2006.

Usage

data(doctorates)

Arguments

source

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

Details

This data set is used as an example in the book "R in a Nutshell" from O'Reilly Media.

Examples

Run this code
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))

Run the code above in your browser using DataLab