consumption {nutshell}R Documentation

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)

Format

A data frame with 42 observations on the following 4 variables.

Food
a factor with levels Caloric sweeteners, Dairy products, Eggs, Fish and Shellfist, Flour and cereal products, Poultry, Red Meat
Units
a factor with levels Number, Pounds
Year
a numeric vector
Amount
a numeric vector

Details

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

Source

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

Examples

data(consumption)
library(lattice)
dotplot(
  Amount ~ Year | Food,
  data=consumption,
  aspect="xy",
  scales=list(relation="sliced", cex=.4)
)

[Package nutshell version 1.0 Index]