Learn R Programming

nutshell (version 1.02)

consumption: Per capita US Food Consumption 1980-2005

Description

This data frame contains infromation on the per-capita consumption of food in the United States, between 1980 and 2005. The data is taken from the Statistical Abstract of the Unites States.

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

Usage

data(consumption)

Arguments

source

http://www.census.gov/compendia/statab/cats/health_nutrition/food_consumption_and_nutrition.html

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(consumption)
library(lattice)
dotplot(
  Amount ~ Year | Food,
  data=consumption,
  aspect="xy",
  scales=list(relation="sliced", cex=.4)
)

Run the code above in your browser using DataLab